feat: add /healthz liveness endpoint for container healthcheck
Build and Push Docker Image / build (push) Successful in 36s

This commit is contained in:
2026-07-28 16:26:49 -05:00
parent 1654f712ac
commit 4e71ec844b
+4
View File
@@ -47,6 +47,10 @@ app.use('/static', express.static(STATIC_PATH));
app.use('/uploads', (_req, res) => res.status(404).json({ error: 'Upload not found' }));
app.use('/static', (_req, res) => res.status(404).json({ error: 'Static asset not found' }));
// Liveness probe for the container HEALTHCHECK (note: /api/health is the
// dog health-records API, not a status endpoint)
app.get('/healthz', (_req, res) => res.json({ status: 'ok' }));
// ── API Routes ──────────────────────────────────────────────────────────
app.use('/api/dogs', require('./routes/dogs'));
app.use('/api/litters', require('./routes/litters'));