Summary
Extend the health route to report whether storage is postgres or local-json and, for Postgres, whether a test query succeeds.
Scope
Likely files
Acceptance criteria
- Health returns storage mode
- In Postgres mode it reports DB reachable/unreachable without leaking credentials
- Returns 200 when healthy, 503 when DB is required but down
Verification
- Run with and without
DATABASE_URL and confirm the reported mode
Labels: backend, enhancement, good first issue
Summary
Extend the health route to report whether storage is
postgresorlocal-jsonand, for Postgres, whether a test query succeeds.Scope
Likely files
src/app.jssrc/lib/db.jsAcceptance criteria
Verification
DATABASE_URLand confirm the reported modeLabels:
backend,enhancement,good first issue