feat(health): /api/health/services (grouped+counts) + owner /check
Adds GET /api/health/services returning registry services grouped by category with merged cached status and per-group healthy counts, and POST /api/health/check (owner-only) that enqueues a health.check pg-boss job. Registers the health_check worker in the jobs index.
This commit is contained in:
@@ -27,6 +27,7 @@ import { router as dashboardRouter } from './routes/dashboard.js';
|
||||
import { router as weatherRouter } from './routes/weather.js';
|
||||
import { router as hostRouter } from './routes/host.js';
|
||||
import { router as speedtestRouter } from './routes/speedtest.js';
|
||||
import { router as healthRouter } from './routes/health.js';
|
||||
|
||||
export function mountApi(app) {
|
||||
const api = Router();
|
||||
@@ -61,6 +62,7 @@ export function mountApi(app) {
|
||||
api.use('/weather', weatherRouter);
|
||||
api.use('/host', hostRouter);
|
||||
api.use('/speedtest', speedtestRouter);
|
||||
api.use('/health', healthRouter);
|
||||
api.use('/:entity_type/:entity_id/tags', tagsByEntityRouter);
|
||||
|
||||
api.use((_req, _res, next) => next(new NotFoundError('route not found')));
|
||||
|
||||
Reference in New Issue
Block a user