added deprecation notice to plugins/fireHook

This commit is contained in:
psychobunny
2014-03-03 12:37:57 -05:00
parent 94aeb3ab22
commit f785f7f6e3

View File

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