fixing admin routes on subfolder installs

v1.18.x
Julian Lam 11 years ago
parent f28c690f2f
commit 82a3415ab1

@ -119,12 +119,11 @@ function mainRoutes(app, middleware, controllers) {
module.exports = function(app, middleware) { module.exports = function(app, middleware) {
app.namespace(nconf.get('relative_path'), function() { app.namespace(nconf.get('relative_path'), function() {
adminRoutes(app, middleware, controllers);
plugins.ready(function() { plugins.ready(function() {
app.all('/api/*', middleware.updateLastOnlineTime, middleware.prepareAPI); app.all('/api/*', middleware.updateLastOnlineTime, middleware.prepareAPI);
plugins.fireHook('action:app.load', app, middleware, controllers); plugins.fireHook('action:app.load', app, middleware, controllers);
adminRoutes(app, middleware, controllers);
metaRoutes(app, middleware, controllers); metaRoutes(app, middleware, controllers);
apiRoutes(app, middleware, controllers); apiRoutes(app, middleware, controllers);
feedRoutes(app, middleware, controllers); feedRoutes(app, middleware, controllers);

Loading…
Cancel
Save