mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-13 18:31:34 +02:00
add ping routes to webinstaller
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user