forked from GitHub/dbot
fix module list on index
This commit is contained in:
parent
02d18245c3
commit
2fac33c2e7
@ -94,6 +94,8 @@ var webInterface = function(dbot) {
|
|||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
|
||||||
this.onLoad = function() {
|
this.onLoad = function() {
|
||||||
|
this.reloadPages();
|
||||||
|
|
||||||
var routes = _.pluck(dbot.modules.web.app.routes.get, 'path'),
|
var routes = _.pluck(dbot.modules.web.app.routes.get, 'path'),
|
||||||
moduleNames = _.keys(dbot.modules);
|
moduleNames = _.keys(dbot.modules);
|
||||||
|
|
||||||
@ -106,7 +108,6 @@ var webInterface = function(dbot) {
|
|||||||
}
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
this.reloadPages();
|
|
||||||
|
|
||||||
this.app.get('/', function(req, res) {
|
this.app.get('/', function(req, res) {
|
||||||
res.render('index', {
|
res.render('index', {
|
||||||
|
Loading…
Reference in New Issue
Block a user