From 82a3415ab1ec74459f3d6fec45c77272276cc7d2 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 11 Mar 2014 19:46:33 -0400 Subject: [PATCH] fixing admin routes on subfolder installs --- src/routes/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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);