We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 547322a commit b02d833Copy full SHA for b02d833
Backend/config/urls.py
@@ -16,8 +16,14 @@
16
"""
17
from django.contrib import admin
18
from django.urls import include, path
19
+from django.http import JsonResponse
20
+
21
+def health_check(request):
22
+ """Health check endpoint for Render"""
23
+ return JsonResponse({"status": "healthy", "service": "TOC-Simulator API"})
24
25
urlpatterns = [
26
+ path('health/', health_check, name='health_check'),
27
path('admin/', admin.site.urls),
28
path('auth/', include('apps.authentication.urls')),
29
]
0 commit comments