Skip to content

Commit

Permalink
Added ApiStatusView with health_status message.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhiiva committed Aug 2, 2021
1 parent dec28ce commit 13859a7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions agagd/agagd_core/views/beta/api.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from agagd_core.json_response import JsonResponse
from django.http import HttpResponse
from django.views import View


class ApiStatusView(View):
def get(self, request):
response = {"health_status_code": 200, "health_status": "The AGAGD is running."}
return JsonResponse(response)

0 comments on commit 13859a7

Please sign in to comment.