From 8a3b86e27d5aceab21a939837e86b20760a91e5e Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Fri, 9 Apr 2021 10:31:21 +0200 Subject: [PATCH] Add liveness check endpoint `GET /health/live` returns "200 OK" --- scripts/health.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 scripts/health.js diff --git a/scripts/health.js b/scripts/health.js new file mode 100644 index 0000000..22effb7 --- /dev/null +++ b/scripts/health.js @@ -0,0 +1,5 @@ +module.exports = function (robot) { + robot.router.get('/health/live', (req, res) => { + res.send('OK'); + }); +}