create auth routes only after plugin system is enabled and auth.init hook is fired

This commit is contained in:
psychobunny
2013-11-28 11:13:03 -05:00
parent 78b65c0b12
commit b7aea63c53
2 changed files with 10 additions and 4 deletions

View File

@@ -348,7 +348,7 @@ var path = require('path'),
app.namespace(nconf.get('relative_path'), function () {
auth.createRoutes(app);
auth.registerApp(app);
admin.createRoutes(app);
userRoute.createRoutes(app);
apiRoute.createRoutes(app);