ISO-27001-Risk-Management/api/views.py
2025-09-05 12:02:41 +02:00

8 lines
No EOL
304 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]) # erstmal offen, später absichern
def ping(request):
return Response({"status": "ok"})