add /__lbheartbeat__ endpoint

This commit is contained in:
Daniel Thorn 2017-06-22 12:18:07 -07:00 committed by GitHub
parent 84d1267417
commit f13cd9f8b8

View File

@ -146,6 +146,10 @@ app.post('/upload/:id', (req, res, next) => {
}); });
}); });
app.get('/__lbheartbeat__', (req, res) => {
res.sendStatus(200);
});
app.listen(conf.listen_port, () => { app.listen(conf.listen_port, () => {
log.info('startServer:', `Portal app listening on port ${conf.listen_port}!`); log.info('startServer:', `Portal app listening on port ${conf.listen_port}!`);
}); });