|
|
@ -9,6 +9,10 @@ var nconf = require('nconf'),
|
|
|
|
plugins = require('../plugins'),
|
|
|
|
plugins = require('../plugins'),
|
|
|
|
|
|
|
|
|
|
|
|
PluginRoutes = function(app) {
|
|
|
|
PluginRoutes = function(app) {
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* GET/PUT /plugins/fireHook to be deprecated after 0.4.x
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
*/
|
|
|
|
app.get('/plugins/fireHook', function(req, res) {
|
|
|
|
app.get('/plugins/fireHook', function(req, res) {
|
|
|
|
// GET = filter
|
|
|
|
// GET = filter
|
|
|
|
plugins.fireHook('filter:' + req.query.hook, req.query.args, function(err, returnData) {
|
|
|
|
plugins.fireHook('filter:' + req.query.hook, req.query.args, function(err, returnData) {
|
|
|
|