15 lines
379 B
Python
15 lines
379 B
Python
from rest_framework import status
|
|
from rest_framework.response import Response
|
|
from rest_framework.views import APIView
|
|
|
|
|
|
class HealthCheckView(APIView):
|
|
permission_classes = []
|
|
authentication_classes = []
|
|
|
|
def get(self, request):
|
|
return Response({
|
|
'status': 'ok',
|
|
'service': 'lms-backend'
|
|
},
|
|
status=status.HTTP_200_OK) |