@polylith/builder 0.2.16 → 0.2.18
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/App.js +2 -2
- package/package.json +1 -1
package/App.js
CHANGED
|
@@ -117,13 +117,13 @@ export default class App {
|
|
|
117
117
|
* @param {express.Router} appRouter
|
|
118
118
|
* @returns {Promise}
|
|
119
119
|
*/
|
|
120
|
-
async router(express,
|
|
120
|
+
async router(express, appRouter) {
|
|
121
121
|
if (!this.modulePath) return;
|
|
122
122
|
|
|
123
123
|
try {
|
|
124
124
|
let module = await import(this.modulePath)
|
|
125
125
|
let router = module.default;
|
|
126
|
-
await router(express,
|
|
126
|
+
await router(express, appRouter, this);
|
|
127
127
|
return true;
|
|
128
128
|
} catch(e) {
|
|
129
129
|
console.error(cc.set('fg_red;, error while building router'), this.modulePath);
|