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);