mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +01:00
added deprecation notice to plugins/fireHook
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user