Skip to content

feat: add public health check endpoint#90

Open
pdtkts wants to merge 1 commit intoTheSmallHanCat:mainfrom
pdtkts:main
Open

feat: add public health check endpoint#90
pdtkts wants to merge 1 commit intoTheSmallHanCat:mainfrom
pdtkts:main

Conversation

@pdtkts
Copy link

@pdtkts pdtkts commented Mar 17, 2026

Summary

  • Add GET /health endpoint (no auth required)
  • Returns backend_running (bool) and has_active_tokens (bool)
  • Useful for uptime monitoring tools (UptimeRobot, Kuma, Docker healthcheck, etc.)

Response example

{
  "backend_running": true,
  "has_active_tokens": true
}

Details

  • If DB connection fails, gracefully returns has_active_tokens: false instead of crashing
  • Reuses existing get_dashboard_stats() query
  • No breaking changes

Test plan

  • curl http://localhost:38000/health returns correct JSON
  • Docker build & run successfully

Add GET /health endpoint (no auth required) returning backend_running
status and has_active_tokens boolean for uptime monitoring.
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