From 2fac33c2e719f65d702b35ebb1007ee9c444cab6 Mon Sep 17 00:00:00 2001 From: reality Date: Thu, 2 Jan 2014 13:11:42 +0000 Subject: [PATCH] fix module list on index --- modules/web/web.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/web/web.js b/modules/web/web.js index 518bee4..f15f41d 100644 --- a/modules/web/web.js +++ b/modules/web/web.js @@ -94,6 +94,8 @@ var webInterface = function(dbot) { }.bind(this); this.onLoad = function() { + this.reloadPages(); + var routes = _.pluck(dbot.modules.web.app.routes.get, 'path'), moduleNames = _.keys(dbot.modules); @@ -106,7 +108,6 @@ var webInterface = function(dbot) { } }.bind(this)); - this.reloadPages(); this.app.get('/', function(req, res) { res.render('index', {