mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-05 05:25:49 +01:00
fixing request to /api not returning api result
This commit is contained in:
@@ -160,7 +160,7 @@ module.exports = function(app, middleware) {
|
||||
app.render.apply(app, arguments);
|
||||
};
|
||||
|
||||
app.all(relativePath + '/api/*', middleware.updateLastOnlineTime, middleware.prepareAPI);
|
||||
app.all(relativePath + '/api/?*', middleware.updateLastOnlineTime, middleware.prepareAPI);
|
||||
app.all(relativePath + '/api/admin/*', middleware.admin.isAdmin, middleware.prepareAPI);
|
||||
app.all(relativePath + '/admin/*', middleware.admin.isAdmin);
|
||||
app.get(relativePath + '/admin', middleware.admin.isAdmin);
|
||||
@@ -247,4 +247,4 @@ function catch404(req, res, next) {
|
||||
} else {
|
||||
res.type('txt').send('Not found');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user