filter:widgets.getAreas - allows plugins to define widget locations in tpls

This commit is contained in:
psychobunny
2014-02-19 11:43:25 -05:00
parent 8f972d8cdc
commit fa5f528fb5

View File

@@ -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) {