Louis Mazin a2fda03471 first
2026-10-15 14:17:25 +02:00

10 lines
306 B
Python

from rest_framework.decorators import api_view, permission_classes
from rest_framework.permissions import AllowAny
from rest_framework.response import Response
@api_view(["GET"])
@permission_classes([AllowAny])
def health(request):
return Response({"status": "ok", "message": "Django fonctionne !"})