Skip to content

Nested modules does not retain prefixes. ย #81

@zackarychapple

Description

@zackarychapple

Really excited to see this project. Started using it right away and was pleased to see how easy it works out of the box. However I'm trying to build nested routes that are two (possibly more) levels deep.

const routes: Routes = [
  {
    path: '/myPath',
    children: [
      {path: '', module: MyApiModule}
    ]
  }
]

MyApiModule has its own nested routes

const routes: Routes = [
  {
    path: '/v1',
    children: [
      {path: '/summary', module: SummaryModule}
    ]
  }
]

When I try to hit /api/myPath/v1/summary I get a 404 however when I hit /api/v1/summary I get the response I'm expecting. I would expect that having a child module that also has children would flatten this way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions