Merge pull request #116 from relud/patch-1
add /__lbheartbeat__ endpoint
This commit is contained in:
commit
31f9537bc8
1 changed files with 4 additions and 0 deletions
|
@ -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}!`);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue