added deprecation notice to plugins/fireHook

v1.18.x
psychobunny 11 years ago
parent 94aeb3ab22
commit f785f7f6e3

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

Loading…
Cancel
Save