From 1127d11a0e6091ebe1a54b61e337b84f203951ed Mon Sep 17 00:00:00 2001 From: reality Date: Fri, 17 May 2013 14:10:43 +0000 Subject: [PATCH] undo thing --- modules/api/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/api/api.js b/modules/api/api.js index dc4fedd..408dc0a 100644 --- a/modules/api/api.js +++ b/modules/api/api.js @@ -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) {