add ping routes to webinstaller

v1.18.x
Barış Soner Uşaklı 7 years ago
parent 264c8db143
commit 3b3a28dc15

@ -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) {

Loading…
Cancel
Save