feat: implement simple healthcheck endpoint

This commit is contained in:
Carlos Valente
2025-10-30 06:24:38 +01:00
committed by Carlos Valente
parent b7e5723fb2
commit e0377a7244
+5
View File
@@ -84,6 +84,11 @@ app.use(bodyParser);
app.use(cookieParser());
const { authenticate, authenticateAndRedirect } = makeAuthenticateMiddleware(prefix);
// implement health check route
app.get(`${prefix}/health`, (_req, res) => {
res.status(200).send('OK');
});
// Implement route endpoints
app.use(`${prefix}/login`, loginRouter); // router for login flow
app.use(`${prefix}/data`, authenticate, appRouter); // router for application data