mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 04:21:17 +01:00
filter:widgets.getAreas - allows plugins to define widget locations in tpls
This commit is contained in:
@@ -410,7 +410,11 @@ var nconf = require('nconf'),
|
||||
});
|
||||
|
||||
app.get('/themes', function (req, res) {
|
||||
res.json(200, {});
|
||||
plugins.fireHook('filter:widgets.getAreas', [], function(err, widgets) {
|
||||
res.json(200, {
|
||||
widgets: widgets
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/testing/categories', function (req, res) {
|
||||
|
||||
Reference in New Issue
Block a user