From b02d83350d35e21d59df0c60a9305654eac39a5c Mon Sep 17 00:00:00 2001 From: Shahdidul Date: Wed, 10 Dec 2025 21:22:16 +0600 Subject: [PATCH] added health check endpoint --- Backend/config/urls.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Backend/config/urls.py b/Backend/config/urls.py index 2176f65..a7b5e6d 100644 --- a/Backend/config/urls.py +++ b/Backend/config/urls.py @@ -16,8 +16,14 @@ """ from django.contrib import admin from django.urls import include, path +from django.http import JsonResponse + +def health_check(request): + """Health check endpoint for Render""" + return JsonResponse({"status": "healthy", "service": "TOC-Simulator API"}) urlpatterns = [ + path('health/', health_check, name='health_check'), path('admin/', admin.site.urls), path('auth/', include('apps.authentication.urls')), ]