Skip to content

Commit b02d833

Browse files
added health check endpoint
1 parent 547322a commit b02d833

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Backend/config/urls.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,14 @@
1616
"""
1717
from django.contrib import admin
1818
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"})
1924

2025
urlpatterns = [
26+
path('health/', health_check, name='health_check'),
2127
path('admin/', admin.site.urls),
2228
path('auth/', include('apps.authentication.urls')),
2329
]

0 commit comments

Comments
 (0)