feat: add /healthz liveness endpoint for container healthcheck
Build and Push Docker Image / build (push) Successful in 36s
Build and Push Docker Image / build (push) Successful in 36s
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user