mirror of
https://github.com/kennethreitz/photos.kennethreitz.org.git
synced 2026-06-05 06:46:13 +00:00
Add /health endpoint for fast health checks, fix cold start timeout
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -121,6 +121,7 @@ urlpatterns = [
|
||||
path("admin/", admin.site.urls),
|
||||
path("sitemap.xml", sitemap, {'sitemaps': sitemaps}, name='sitemap'),
|
||||
path("robots.txt", TemplateView.as_view(template_name='robots.txt', content_type='text/plain')),
|
||||
path("health", lambda r: HttpResponse("ok")),
|
||||
path("favicon.ico", lambda r: HttpResponse(status=204)),
|
||||
path("apple-touch-icon.png", lambda r: HttpResponse(status=204)),
|
||||
path("apple-touch-icon-precomposed.png", lambda r: HttpResponse(status=204)),
|
||||
|
||||
Reference in New Issue
Block a user