fix(backend): use /health for cloud run smoke endpoints

This commit is contained in:
zouantchaw
2026-02-24 08:58:49 -05:00
parent f8f81ec77c
commit 1876441a12
5 changed files with 17 additions and 10 deletions

View File

@@ -2,11 +2,14 @@ import { Router } from 'express';
export const healthRouter = Router();
healthRouter.get('/healthz', (req, res) => {
function healthHandler(req, res) {
res.status(200).json({
ok: true,
service: 'krow-core-api',
version: process.env.SERVICE_VERSION || 'dev',
requestId: req.requestId,
});
});
}
healthRouter.get('/health', healthHandler);
healthRouter.get('/healthz', healthHandler);