From 27fbc8958f7e2ff9be68d5f58485bc9d55d91c60 Mon Sep 17 00:00:00 2001 From: Brett Logan Date: Sun, 10 Mar 2024 00:02:54 -0500 Subject: [PATCH] Add /healthz endpoint Signed-off-by: Brett Logan --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 2f27788..8f8b39d 100644 --- a/index.js +++ b/index.js @@ -133,6 +133,11 @@ app.get('/', (req, res) => { res.send('OK') }) +app.get('/healthz', (req, res) => { + console.log('Health check: OK') + res.send('OK') +}) + const main = async () => { app.listen(port, () => { console.log(`Server is running on port ${port}`)