You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Module({imports: [RouterModule.forRoutes(routes),BanksModuleBankAccountsModule// Child module is imported directly in AppModule]})exportclassAppModule{}
app.module
| banks.module
| bankaccounts.module
```ts
@Controller('/banks')
export class BanksController implements CrudController<Bank> {
How to use child routes with parent modules?
The only way I managed to make the child route work was:
This http request below return all bank accounts
but...
return:
Using nested module
but if you try to use nested module, it will to fail.
I already tried to remove and add tags to
BankAccount Controller
but nothing makes it work the second way.I think it is the right way to implement nested routes with parent modules.
But how to make this work with
nest-router
?Update: I think that is any error with Nestjs Crud library.
The text was updated successfully, but these errors were encountered: