Skip to content

v1.7.17: Resolve module root route overriding app root route

Choose a tag to compare

@M-Chris M-Chris released this 22 Jan 23:19
· 108 commits to main since this release

Resolve module root route overriding app root route

  • Fixed routing conflict where module root path (/) was overriding application root route
  • Modified createModuleRouter to calculate full path (basePath + routePath) before delegating to Router
  • Applied same fix to registerLazyModules for lazy-loaded module routes
  • Module root routes now correctly map to their full versioned path (e.g. /api/v1.0.0/moduleName)
  • Added integration test to verify module root paths don't override app root
  • Maintains compatibility with apiPrefix configuration option