-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program
Description
Description
Add a dedicated route module for health and readiness checks so that the main app does not need to be modified when adding other routes.
Requirements and context
- Implement only in new files. Do not modify
package.json,src/index.ts, or any shared app/bootstrap file. Addsrc/routes/health.ts(or equivalent) so the route auto-loader picks it up. - Expose
GET /health(liveness) and optionallyGET /ready(readiness, e.g. DB connectivity) with JSON responses. - Must be secure, tested, and documented.
Suggested execution
- Fork the repo and create a branch:
git checkout -b feature/health-readiness-routes - Add
src/routes/health.tsexporting a router and path (per project route convention). - Implement handlers that return
{ status: 'ok', service: 'revora-backend' }and, for readiness, check any shared dependency (e.g. DB) if available. - Add unit tests for the health/ready handlers (e.g. in
src/routes/__tests__/health.test.tsor similar). - Do not change
src/index.tsor central app wiring.
Test and commit
- Run tests and ensure health/ready respond as expected.
- Example commit message:
feat(api): add health and readiness route module
Guidelines
- No merge conflicts: only new files under
src/routes/(and tests). Timeframe: 96 hours.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave program