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
This commit is contained in:
2025-11-19 12:17:15 +00:00
parent d89023b17e
commit db1649e8e3

View File

@@ -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),
]