From 5097526ae0b39eed00cbc652c6102983fab246fc Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 4 Jul 2014 18:25:08 -0400 Subject: [PATCH] pass express app to plugins, closes #1789 --- src/routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/index.js b/src/routes/index.js index bea9e769dd..5597e4c2d0 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -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);