pass express app to plugins, closes #1789

v1.18.x
barisusakli 11 years ago
parent f288f80da6
commit 5097526ae0

@ -165,7 +165,7 @@ module.exports = function(app, middleware) {
router.all('/admin/*', middleware.admin.isAdmin);
router.get('/admin', middleware.admin.isAdmin);
plugins.fireHook('action:app.load', router, middleware, controllers);
plugins.fireHook('action:app.load', app, middleware, controllers);
adminRoutes(router, middleware, controllers);
metaRoutes(router, middleware, controllers);

Loading…
Cancel
Save