From db1649e8e316412fcb4a551ee3735d9f18419276 Mon Sep 17 00:00:00 2001 From: brocsam Date: Wed, 19 Nov 2025 12:17:15 +0000 Subject: [PATCH] Add healthcheck endpoint to Reskreen/urls.py - Add healthcheck view function - Create JSON response for healthcheck - Add URL pattern for healthcheck endpoint - Keep existing URL patterns intact - Maintain consistent import style --- Reskreen/urls.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Reskreen/urls.py b/Reskreen/urls.py index ff2135a..3ec2357 100644 --- a/Reskreen/urls.py +++ b/Reskreen/urls.py @@ -19,6 +19,9 @@ from django.urls import path, include from django.conf import settings from django.conf.urls.static import static from django.views.generic import RedirectView +from django.http import JsonResponse +def healthcheck(request): + return JsonResponse({'status': True}) urlpatterns = [ path('', RedirectView.as_view(url='admin/login/', permanent=False), name='/'), @@ -35,6 +38,7 @@ urlpatterns = [ path('editor/', include('django_summernote.urls')), path('api-auth/', include('rest_framework.urls', namespace='rest_framework')), path('api/auth/', include('authapp.urls')), + path('healthcheck/', healthcheck), ]