Files
dashcaddy/dashcaddy-api
Hermes 264de9644c
CI / Test & Lint (push) Has been cancelled
CI / Security audit (push) Has been cancelled
Fix /health/ready res.status bug + add comprehensive health endpoint tests
The readiness probe was crashing with 'res.status is not a function' because
asyncHandler(async (req, res) => {...}, 'health-ready') was called directly,
but asyncHandler's signature is (logError, fn, context) — first arg is the
logger, not the handler. The fix uses boundAsyncHandler like all other routes
in the file do.

Added 8 unit tests for both /health/live and /health/ready:
- live always 200 (liveness ≠ readiness)
- ready returns 503 when config/services/docker fail
- no 'res.status is not a function' crash when dependencies fail
- all 4 check keys present in response

Also added MONITORING_PUBLIC env var (defaults true) and the new health
endpoints to PUBLIC_ROUTES so k8s probes can hit them without auth.
2026-06-10 20:35:27 -07:00
..
2026-03-05 02:26:12 -08:00
2026-03-05 02:26:12 -08:00
2026-03-29 18:46:02 -07:00
2026-03-29 18:46:02 -07:00
2026-03-05 02:26:12 -08:00
2026-03-05 02:26:12 -08:00