From 2299af2b01e8a15586bd5dcbf96cb5baafb441ad Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 31 May 2017 00:40:44 +0000 Subject: [PATCH] chimney --- lib/apis.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/apis.js b/lib/apis.js index 2443ef2..5f57b35 100644 --- a/lib/apis.js +++ b/lib/apis.js @@ -32,7 +32,6 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) { var appApiGrantsPath = path.join(myConf.appApiGrantsPath, clientUrih); return fs.readFileAsync(appApiGrantsPath, 'utf8').then(function (text) { - console.log('sanity', text); return text.trim().split(/\n/); }, function (err) { if ('ENOENT' !== err.code) { @@ -42,7 +41,6 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) { }).then(function (apis) { if (apis.some(function (api) { if (api === pkgId) { - console.log(api, pkgId, api === pkgId); return true; } })) { @@ -324,7 +322,6 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) { req._walnutOriginalUrl = req.url; // "/path/api/com.example/hello".replace(/.*\/api\//, '').replace(/([^\/]*\/+)/, '/') => '/hello' req.url = req.url.replace(/\/api\//, '').replace(/.*\/api\//, '').replace(/([^\/]*\/+)/, '/'); - console.log('[prehandler] req.url', req.url); next(); }); }); @@ -338,7 +335,6 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) { myApp.use('/', function postHandler(req, res, next) { req.url = req._walnutOriginalUrl; - console.log('[posthandler] req.url', req.url); next(); }); @@ -388,7 +384,6 @@ module.exports.create = function (xconfx, apiFactories, apiDeps) { return function (req, res, next) { cors(req, res, function () { - console.log('[sanity check]', req.url); // Canonical client names // example.com should use api.example.com/api for all requests // sub.example.com/api should resolve to sub.example.com