@things-factory/integration-fulfillment 9.0.0-beta.2 → 9.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-server/routes.js
CHANGED
|
@@ -13,7 +13,7 @@ process.on('bootstrap-module-global-public-route', (app, routes) => {
|
|
|
13
13
|
const { code, state } = context.query;
|
|
14
14
|
// state를 fulfillment-center 의 id로 활용한다.
|
|
15
15
|
const store = await fulfillment_api_1.FulfillmentAPI.getFulfillmentCenter(state);
|
|
16
|
-
context.redirect(`${(0, shell_1.getRedirectSubdomainPath)(context, store.domain
|
|
16
|
+
context.redirect(`${(0, shell_1.getRedirectSubdomainPath)(context, store.domain)}fulfillment-center-operato/${state}/connect-callback?code=${code}`);
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
19
|
//# sourceMappingURL=routes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../server/routes.ts"],"names":[],"mappings":";;AAAA,iDAAgE;AAChE,mEAA8D;AAE9D,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;IACxE;;;;;OAKG;IAEH,MAAM,CAAC,GAAG,CAAC,mBAAmB,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QACtD,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAErC,wCAAwC;QACxC,MAAM,KAAK,GAAG,MAAM,gCAAc,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAA;QAE9D,OAAO,CAAC,QAAQ,CACd,GAAG,IAAA,gCAAwB,EACzB,OAAO,EACP,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"routes.js","sourceRoot":"","sources":["../server/routes.ts"],"names":[],"mappings":";;AAAA,iDAAgE;AAChE,mEAA8D;AAE9D,OAAO,CAAC,EAAE,CAAC,sCAA6C,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;IACxE;;;;;OAKG;IAEH,MAAM,CAAC,GAAG,CAAC,mBAAmB,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QACtD,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,KAAK,CAAA;QAErC,wCAAwC;QACxC,MAAM,KAAK,GAAG,MAAM,gCAAc,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAA;QAE9D,OAAO,CAAC,QAAQ,CACd,GAAG,IAAA,gCAAwB,EACzB,OAAO,EACP,KAAK,CAAC,MAAM,CACb,8BAA8B,KAAK,0BAA0B,IAAI,EAAE,CACrE,CAAA;IACH,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA","sourcesContent":["import { getRedirectSubdomainPath } from '@things-factory/shell'\nimport { FulfillmentAPI } from './controllers/fulfillment-api'\n\nprocess.on('bootstrap-module-global-public-route' as any, (app, routes) => {\n /*\n * koa application에 routes 를 추가할 수 있다.\n *\n * ex) routes.get('/path', async(context, next) => {})\n * ex) routes.post('/path', async(context, next) => {})\n */\n\n routes.get('/callback-operato', async (context, next) => {\n const { code, state } = context.query\n\n // state를 fulfillment-center 의 id로 활용한다.\n const store = await FulfillmentAPI.getFulfillmentCenter(state)\n\n context.redirect(\n `${getRedirectSubdomainPath(\n context,\n store.domain\n )}fulfillment-center-operato/${state}/connect-callback?code=${code}`\n )\n })\n})\n"]}
|