/_health endpoint now checks the database and redis connections

This commit is contained in:
Tom Moor
2023-03-18 12:37:34 -04:00
parent dafc4fb609
commit 68640860fb
2 changed files with 18 additions and 2 deletions

View File

@@ -90,8 +90,6 @@ async function start(id: number, disconnect: () => void) {
// Apply default rate limit to all routes
app.use(defaultRateLimiter());
// install health check endpoint for all services
router.get("/_health", (ctx) => (ctx.body = "OK"));
app.use(router.routes());
// loop through requested services at startup