mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-09-02 02:16:19 +02:00
Merge branch 'develop' into activitypub
This commit is contained in:
@@ -10,7 +10,7 @@ const privileges = require('../privileges');
|
||||
const helpers = require('./helpers');
|
||||
|
||||
const controllers = {
|
||||
api: require('../controllers/api'),
|
||||
admin: require('../controllers/admin'),
|
||||
helpers: require('../controllers/helpers'),
|
||||
};
|
||||
|
||||
@@ -22,7 +22,7 @@ middleware.buildHeader = helpers.try(async (req, res, next) => {
|
||||
await require('./index').applyCSRFasync(req, res);
|
||||
}
|
||||
|
||||
res.locals.config = await controllers.api.loadConfig(req);
|
||||
res.locals.config = await controllers.admin.loadConfig(req);
|
||||
next();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user