@forklaunch/core 0.17.2 → 0.17.3

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.
@@ -1323,7 +1323,8 @@ function resolveRouteMiddlewares(params) {
1323
1323
  params.requestSchema,
1324
1324
  params.responseSchemas,
1325
1325
  params.openTelemetryCollector,
1326
- () => params.routerOptions
1326
+ // Use dynamic lookup from router instance instead of captured params
1327
+ () => params.router ? params.router.routerOptions : params.routerOptions
1327
1328
  ),
1328
1329
  ...params.postEnrichMiddleware,
1329
1330
  parse,
@@ -1599,7 +1600,8 @@ var ForklaunchExpressLikeRouter = class _ForklaunchExpressLikeRouter {
1599
1600
  routerOptions: this.routerOptions,
1600
1601
  postEnrichMiddleware: this.postEnrichMiddleware,
1601
1602
  includeCreateContext: false,
1602
- handlers
1603
+ handlers,
1604
+ router: this
1603
1605
  });
1604
1606
  registrationMethod.bind(this.internal)(
1605
1607
  path,