From b7894fc89153b709f45d2f9592ae7b9b886c4101 Mon Sep 17 00:00:00 2001 From: Alex_H Date: Sat, 25 Jul 2026 14:47:32 +0100 Subject: [PATCH] Adding health check path endpoint --- app.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app.js b/app.js index 5ab128e4b4..0b46d592e5 100644 --- a/app.js +++ b/app.js @@ -4,6 +4,17 @@ const port = process.env.PORT || 3001; app.get("/", (req, res) => res.type('html').send(html)); + +app.get("/", (req, res) => res.type('html').send(html)); + +// Add a new route for the health endpoint + +app.get("/health", (req, res) => { + + res.sendStatus(200); + +}); + const server = app.listen(port, () => console.log(`Example app listening on port ${port}!`)); server.keepAliveTimeout = 120 * 1000;