whitespace
This commit is contained in:
parent
37e608517e
commit
87686f4e5e
|
@ -175,7 +175,7 @@ function getApi(pkgConf, pkgDeps, packagedApi) {
|
||||||
packagedApi._api.use('/', function (req, res, next) {
|
packagedApi._api.use('/', function (req, res, next) {
|
||||||
var priorUrl = req.url;
|
var priorUrl = req.url;
|
||||||
req.url = '/api' + req.url.slice(('/api/' + packagedApi.id).length);
|
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) {
|
packagedApi._api_app(req, res, function (err) {
|
||||||
req.url = priorUrl;
|
req.url = priorUrl;
|
||||||
next(err);
|
next(err);
|
||||||
|
@ -185,6 +185,7 @@ function getApi(pkgConf, pkgDeps, packagedApi) {
|
||||||
// /api/com.example.foo => /
|
// /api/com.example.foo => /
|
||||||
packagedApi._api.use('/api/' + packagedApi.id, function (req, res, next) {
|
packagedApi._api.use('/api/' + packagedApi.id, function (req, res, next) {
|
||||||
// console.log('api mangle 2:', '/api/' + packagedApi.id, req.url);
|
// console.log('api mangle 2:', '/api/' + packagedApi.id, req.url);
|
||||||
|
// console.log(packagedApi._api_app.toString());
|
||||||
packagedApi._api_app(req, res, next);
|
packagedApi._api_app(req, res, next);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue