3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-28 05:32:50 +01:00

i think adding a this.pages breaks it

This commit is contained in:
reality 2013-05-17 13:58:44 +00:00
parent f69d7058ba
commit 086d4be6ab

View File

@ -5,7 +5,7 @@
var _ = require('underscore')._;
var api = function(dbot) {
this.pages = {
/*this.pages = {
'/api': function(req, res) {
var externalApi = {};
_.each(dbot.api, function(moduleApi, moduleName) {
@ -19,7 +19,7 @@ var api = function(dbot) {
res.render('api', { 'name': dbot.config.name, 'api': externalApi });
}
};
};*/
this.onLoad = function() {
dbot.modules.web.app.get('/api/:module/:method', function(req, res) {