11 lines
307 B
Python
11 lines
307 B
Python
from rest_framework.permissions import AllowAny
|
|
from rest_framework.response import Response
|
|
from rest_framework.views import APIView
|
|
|
|
|
|
class HealthCheckView(APIView):
|
|
authentication_classes = []
|
|
permission_classes = [AllowAny]
|
|
|
|
def get(self, request):
|
|
return Response({"status": "ok"})
|