forked from GitHub/dbot
i think adding a this.pages breaks it
This commit is contained in:
parent
f69d7058ba
commit
086d4be6ab
@ -5,7 +5,7 @@
|
|||||||
var _ = require('underscore')._;
|
var _ = require('underscore')._;
|
||||||
|
|
||||||
var api = function(dbot) {
|
var api = function(dbot) {
|
||||||
this.pages = {
|
/*this.pages = {
|
||||||
'/api': function(req, res) {
|
'/api': function(req, res) {
|
||||||
var externalApi = {};
|
var externalApi = {};
|
||||||
_.each(dbot.api, function(moduleApi, moduleName) {
|
_.each(dbot.api, function(moduleApi, moduleName) {
|
||||||
@ -19,7 +19,7 @@ var api = function(dbot) {
|
|||||||
|
|
||||||
res.render('api', { 'name': dbot.config.name, 'api': externalApi });
|
res.render('api', { 'name': dbot.config.name, 'api': externalApi });
|
||||||
}
|
}
|
||||||
};
|
};*/
|
||||||
|
|
||||||
this.onLoad = function() {
|
this.onLoad = function() {
|
||||||
dbot.modules.web.app.get('/api/:module/:method', function(req, res) {
|
dbot.modules.web.app.get('/api/:module/:method', function(req, res) {
|
||||||
|
Loading…
Reference in New Issue
Block a user