From 3b3a28dc1511619767c1183aab7ecbf031490e80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 24 Jan 2018 21:05:08 -0500 Subject: [PATCH] add ping routes to webinstaller --- install/web.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install/web.js b/install/web.js index 8bfd416785..8dbbeec278 100644 --- a/install/web.js +++ b/install/web.js @@ -76,6 +76,12 @@ function setupRoutes() { app.get('/', welcome); app.post('/', install); app.post('/launch', launch); + app.get('/ping', ping); + app.get('/sping', ping); +} + +function ping(req, res) { + res.status(200).send(req.path === '/sping' ? 'healthy' : '200'); } function welcome(req, res) {