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;