Add healthcheck endpoint
This commit is contained in:
parent
fe86281cf8
commit
f57bd310fe
|
@ -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);
|
||||
|
|
|
@ -14,3 +14,7 @@ shakedown GET /user/blah
|
|||
|
||||
shakedown GET /browse/www.test.com
|
||||
status 200
|
||||
|
||||
shakedown GET /health
|
||||
status 200
|
||||
contains 'OK'
|
||||
|
|
Loading…
Reference in New Issue