From e29b67749fbd3557e8ac8bd46185880d5cb820ac Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Fri, 9 Apr 2021 09:43:29 +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'); + }); +}