mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
refactor: async/await controllers/api
This commit is contained in:
@@ -37,7 +37,7 @@ module.exports = function (middleware) {
|
||||
function (next) {
|
||||
async.parallel({
|
||||
config: function (next) {
|
||||
controllers.api.getConfig(req, res, next);
|
||||
controllers.api.loadConfig(req, next);
|
||||
},
|
||||
plugins: function (next) {
|
||||
plugins.fireHook('filter:middleware.buildHeader', { req: req, locals: res.locals }, next);
|
||||
|
||||
Reference in New Issue
Block a user