diff --git a/src/routes/index.js b/src/routes/index.js index 4a9503b593..80c3b45055 100644 --- a/src/routes/index.js +++ b/src/routes/index.js @@ -119,12 +119,11 @@ function mainRoutes(app, middleware, controllers) { module.exports = function(app, middleware) { app.namespace(nconf.get('relative_path'), function() { - adminRoutes(app, middleware, controllers); - plugins.ready(function() { app.all('/api/*', middleware.updateLastOnlineTime, middleware.prepareAPI); plugins.fireHook('action:app.load', app, middleware, controllers); + adminRoutes(app, middleware, controllers); metaRoutes(app, middleware, controllers); apiRoutes(app, middleware, controllers); feedRoutes(app, middleware, controllers);