Skip to content

feat: add /health endpoint for platform health checks#542

Open
xpoes123 wants to merge 1 commit into
qbreader:mainfrom
xpoes123:feat/health-endpoint
Open

feat: add /health endpoint for platform health checks#542
xpoes123 wants to merge 1 commit into
qbreader:mainfrom
xpoes123:feat/health-endpoint

Conversation

@xpoes123

@xpoes123 xpoes123 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Adds a /health GET endpoint that returns HTTP 200 immediately, giving platform health checkers (Heroku, uptime monitors, load balancers) a fast, reliable signal that the process is alive.

Problem

The server had no dedicated health route. Health checks from Heroku or other infrastructure would hit a full application route, which may perform database work or be gated behind heavier middleware. During DB reconnect delays or cold starts, those checks could fail or time out, causing unnecessary restarts.

Changes

  • Adds router.get('/health', (req, res) => res.sendStatus(200)) in routes/index.js, registered before the heavier sub-routers so it responds as early as possible.

Risk & testing

The route is a single line with no side effects and no database access. It cannot break any existing route because /health was previously unhandled. Low risk; node --check passes.

@xpoes123 xpoes123 changed the title feat: add lightweight /health endpoint feat: add /health endpoint for platform health checks Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant