fix some debugs
This commit is contained in:
parent
0ffe4e2e5c
commit
37e608517e
|
@ -97,12 +97,10 @@ module.exports.inject = function (app) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
app.use('/', function (req, res, next) {
|
app.use('/', function (req, res, next) {
|
||||||
console.log('[DEBUG CORS]', req.method, req.hostname, req.url);
|
//console.log('[DEBUG CORS]', req.method, req.hostname, req.url);
|
||||||
cors(req, res, next);
|
cors(req, res, next);
|
||||||
});
|
});
|
||||||
*/
|
|
||||||
|
|
||||||
app.use('/', getToken);
|
app.use('/', getToken);
|
||||||
};
|
};
|
||||||
|
|
|
@ -158,12 +158,13 @@ function getApi(pkgConf, pkgDeps, packagedApi) {
|
||||||
require('./oauth3-auth').inject(packagedApi._api, pkgConf, pkgDeps);
|
require('./oauth3-auth').inject(packagedApi._api, pkgConf, pkgDeps);
|
||||||
|
|
||||||
// DEBUG
|
// DEBUG
|
||||||
|
//
|
||||||
/*
|
/*
|
||||||
packagedApi._api.use('/', function (req, res, next) {
|
packagedApi._api.use('/', function (req, res, next) {
|
||||||
console.log('[DEBUG pkgsrv]', req.method, req.hostname, req.url);
|
console.log('[DEBUG pkgApiApp]', req.method, req.hostname, req.url);
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
*/
|
//*/
|
||||||
|
|
||||||
// TODO fix backwards compat
|
// TODO fix backwards compat
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue