diff --git a/lib/main.js b/lib/main.js index 6cbca02..da83127 100644 --- a/lib/main.js +++ b/lib/main.js @@ -177,7 +177,7 @@ module.exports.create = function (app, xconfx, apiFactories, apiDeps, errorIfApi // apple.com#blah# apple.com#blah# // apple.com.us# apple.com#foo# // apple.com# apple.com#foo# - console.log('nodes', nodes); + console.log('[lib/main.js] nodes', nodes); nodes.some(function (pkgName) { console.log('pkgName, appId', pkgName, appId); if (0 === (appId + '#').indexOf(pkgName + '#')) { @@ -292,6 +292,7 @@ module.exports.create = function (app, xconfx, apiFactories, apiDeps, errorIfApi // TODO handle assets.example.com/sub/assets/com.example.xyz/ + app.use('/api', require('connect-send-error').error()); app.use('/', function (req, res, next) { // If this doesn't look like an API we can move along if (!/\/api(\/|$)/.test(req.url)) {