mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-23 17:00:24 +01:00
Merge remote-tracking branch 'origin/develop'
This commit is contained in:
@@ -180,8 +180,15 @@ function setupExpressApp(app, callback) {
|
||||
setupAutoLocale(app, callback);
|
||||
}
|
||||
|
||||
function ping(req, res) {
|
||||
res.status(200).send(req.path === '/sping' ? 'healthy' : '200');
|
||||
function ping(req, res, next) {
|
||||
async.waterfall([
|
||||
function (next) {
|
||||
db.getObject('config', next);
|
||||
},
|
||||
function () {
|
||||
res.status(200).send(req.path === '/sping' ? 'healthy' : '200');
|
||||
},
|
||||
], next);
|
||||
}
|
||||
|
||||
function setupFavicon(app) {
|
||||
|
||||
Reference in New Issue
Block a user