Add healthcheck endpoint

This commit is contained in:
Andrea Maria Piana 2018-06-28 13:15:04 +02:00
parent fe86281cf8
commit f57bd310fe
2 changed files with 7 additions and 0 deletions

View File

@ -2,6 +2,9 @@ var express = require('express');
var router = express.Router();
var assetLinks = require('../resources/assetlinks.json');
router.get('/health', function(req, res) {
res.send('OK');
});
router.get('/.well-known/assetlinks.json', function(req, res) {
res.json(assetLinks);

View File

@ -14,3 +14,7 @@ shakedown GET /user/blah
shakedown GET /browse/www.test.com
status 200
shakedown GET /health
status 200
contains 'OK'