[ ] Regression
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
The simple way to map routers in the NestJS
The good behavior is a map many routers and the module responsible, example:
@Module({
routers: [{
path: '/other',
module: OtherModule,
children: [{
path: 'children',
module: ChildrenOtherModule
}
}],
imports: [OtherModule],
controllers: [AppController],
providers: [AppService],
})
export class AppModule
Nest version: 6.5.0
For Tooling issues:
Node version: 8.12.0
- Platform: MacOs 10.14.5
Others:
* IntelliJ IDEA 2019.1.2 (Ultimate Edition) Build #IU-191.7141.44, built on May 7, 2019
abracadabra :ghost:, nest-router tada :tada: !
@shekohex: OMG this is amazing, I'm using in my project to solve the problem of many routers, but I think is a great idea this feature to be inside the framework.
.... but I think is a great idea this feature to be inside the framework.
we are discussing that here https://github.com/nestjs/nest/issues/1438
@lhenriquegomescamilo we'll provide it soon :)
Thank's everyone! :)
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
abracadabra :ghost:, nest-router tada :tada: !