You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
321 B

3 years ago
  1. from rest_framework.permissions import IsAuthenticatedOrReadOnly
  2. from rest_framework.response import Response
  3. from rest_framework.views import APIView
  4. class Health(APIView):
  5. permission_classes = (IsAuthenticatedOrReadOnly,)
  6. def get(self, request, *args, **kwargs):
  7. return Response({'status': 'green'})