Merge branch 'develop' into activitypub

This commit is contained in:
Barış Soner Uşaklı
2024-06-08 16:50:54 -04:00
8 changed files with 309 additions and 7 deletions

View File

@@ -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();
});