mirror of
https://github.com/tubearchivist/tubearchivist.git
synced 2025-07-12 03:58:16 +00:00
12 lines
299 B
Python
12 lines
299 B
Python
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)
|