4 Commits

Author SHA1 Message Date
8956ea59d8 2.4.0 2021-04-09 13:53:17 +02:00
e02c3bb9b6 Merge pull request 'Add liveness check endpoint' (#1) from feature/health_check_endpoint into master
Reviewed-on: #1
2021-04-09 11:17:13 +00:00
564df1770a Merge branch 'master' into feature/health_check_endpoint 2021-04-09 11:16:40 +00:00
e29b67749f Add liveness check endpoint
`GET /health/live` returns "200 OK"
2021-04-09 09:43:29 +02:00
3 changed files with 7 additions and 2 deletions

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{
"name": "hal8000",
"version": "2.3.1",
"version": "2.4.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@@ -1,6 +1,6 @@
{
"name": "hal8000",
"version": "2.3.1",
"version": "2.4.0",
"private": true,
"scripts": {
"start": "./run.sh",

5
scripts/health.js Normal file
View File

@@ -0,0 +1,5 @@
module.exports = function (robot) {
robot.router.get('/health/live', (req, res) => {
res.send('OK');
});
}