filter:config.get

This commit is contained in:
psychobunny
2015-02-27 15:00:24 -05:00
parent 8b21f1c8ab
commit c97c1ab4b9

View File

@@ -86,11 +86,13 @@ apiController.getConfig = function(req, res, next) {
config.categoryTopicSort = settings.categoryTopicSort || config.categoryTopicSort;
config.topicSearchEnabled = settings.topicSearchEnabled || false;
if (res.locals.isAPI) {
res.status(200).json(config);
} else {
next(err, config);
}
plugins.fireHook('filter:config.get', config, function(err, config) {
if (res.locals.isAPI) {
res.status(200).json(config);
} else {
next(err, config);
}
});
});
};