diff --git a/lib/package-server.js b/lib/package-server.js index 9af69a6..5763b48 100644 --- a/lib/package-server.js +++ b/lib/package-server.js @@ -175,7 +175,7 @@ function getApi(pkgConf, pkgDeps, packagedApi) { packagedApi._api.use('/', function (req, res, next) { var priorUrl = req.url; req.url = '/api' + req.url.slice(('/api/' + packagedApi.id).length); - //console.log('api mangle 3:', req.url); + // console.log('api mangle 3:', req.url); packagedApi._api_app(req, res, function (err) { req.url = priorUrl; next(err); @@ -185,6 +185,7 @@ function getApi(pkgConf, pkgDeps, packagedApi) { // /api/com.example.foo => / packagedApi._api.use('/api/' + packagedApi.id, function (req, res, next) { // console.log('api mangle 2:', '/api/' + packagedApi.id, req.url); + // console.log(packagedApi._api_app.toString()); packagedApi._api_app(req, res, next); });