Skip to content

Commit

Permalink
JGoat
Browse files Browse the repository at this point in the history
  • Loading branch information
rm03 committed Oct 29, 2024
1 parent 49597bb commit 84f4d77
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions backend/clubs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -7566,13 +7566,23 @@ def post(self, request):


class HealthView(APIView):
"""
Health check endpoint to confirm the backend is running.
"""

schema = None

def get(self, request):
"""
Health check endpoint to confirm the backend is running.
---
summary: Health Check
responses:
"200":
content:
application/json:
schema:
type: object
properties:
message:
type: string
enum: ["OK"]
---
"""
return Response({"message": "OK"}, status=status.HTTP_200_OK)


Expand Down

0 comments on commit 84f4d77

Please sign in to comment.