Skip to content

Commit

Permalink
some health changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sritanmotati committed Jan 17, 2025
1 parent 6652b1f commit edd7540
Show file tree
Hide file tree
Showing 4 changed files with 14,290 additions and 2,648 deletions.
11 changes: 11 additions & 0 deletions backend/Platform/middleware.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from django.http import HttpResponse


class HealthCheckMiddleware:
def __init__(self, get_response):
self.get_response = get_response

def __call__(self, request):
if request.path == '/health':
return HttpResponse('ok')
return self.get_response(request)
Loading

0 comments on commit edd7540

Please sign in to comment.