Node.js based forum software built for the modern web
ensuring that auth routes are loaded _after_ plugin routes, just like in a reload.
Julian Lamb1d6d8199264
diff --git a/src/routes/index.js b/src/routes/index.jsindex 5cf9c7696a..feefcdccd0 100644--- a/src/routes/index.js+++ b/src/routes/index.js@@ -2,6 +2,7 @@var nconf = require('nconf'),path = require('path'),+ async = require('async'),winston = require('winston'),controllers = require('../controllers'),plugins = require('../plugins'),@@ -130,8 +131,10 @@ module.exports = function(app, middleware) {// Add plugin routes- plugins.reloadRoutes();- authRoutes.reloadRoutes();+ async.series([+ async.apply(plugins.reloadRoutes),+ async.apply(authRoutes.reloadRoutes)+ ]);};function handle404(app, middleware) {