3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 19:52:36 +01:00

fix module list on index

This commit is contained in:
reality 2014-01-02 13:11:42 +00:00
parent 02d18245c3
commit 2fac33c2e7

View File

@ -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', {