Node.js based forum software built for the modern web
add ping routes to webinstaller
Barış Soner Uşaklı3b3a28dc1511
diff --git a/install/web.js b/install/web.jsindex 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) {