From f13cd9f8b8ca5c5e31c084b459a68632d42bc2b1 Mon Sep 17 00:00:00 2001 From: Daniel Thorn Date: Thu, 22 Jun 2017 12:18:07 -0700 Subject: [PATCH] add /__lbheartbeat__ endpoint --- server/portal_server.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/portal_server.js b/server/portal_server.js index e2a00356..67fba7cc 100644 --- a/server/portal_server.js +++ b/server/portal_server.js @@ -146,6 +146,10 @@ app.post('/upload/:id', (req, res, next) => { }); }); +app.get('/__lbheartbeat__', (req, res) => { + res.sendStatus(200); +}); + app.listen(conf.listen_port, () => { log.info('startServer:', `Portal app listening on port ${conf.listen_port}!`); });