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