Health propio

This commit is contained in:
2026-05-13 11:06:29 +02:00
parent 793606d160
commit 4bd7912a33

View File

@@ -23,6 +23,10 @@ const monitorScheduler = new MonitorScheduler(monitorJob, 300000);
app.use("/", createRouter(monitorJob, monitorScheduler)); app.use("/", createRouter(monitorJob, monitorScheduler));
app.get('/health', (req, res) => {
res.json({ ok: true })
})
monitorScheduler.start(); monitorScheduler.start();
app.use((err: Error, req: Request, res: Response, _next: NextFunction) => { app.use((err: Error, req: Request, res: Response, _next: NextFunction) => {