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
If you import a module inside other module, the controller's routes aren't concatenated.
Expected behavior
I mean, If a have a controller: @controller("animals") in my module animals, and I import a module cats with @controller("cats"), I think that cats route should be: /animals/cats
Environment
[System Information]
NodeJS Version : v10.0.0
NPM Version : 6.0.0
Nest version:
microservices version : 5.0.0-beta.6
websockets version : 5.0.0-beta.6
mongoose version : 3.0.1
swagger version : 1.2.2
testing version : 5.0.0-beta.6
common version : 5.0.0-beta.6
core version : 5.0.0-beta.6
For Tooling issues:
- Node version: XX 10.0.0
- Platform: OS Version : Windows 7
The text was updated successfully, but these errors were encountered:
actually your question was asked some time ago but in another format, and it was along discussion you could check it out here #255 , and my comment here #255 (comment) which is the same as your issue.
but as kamil decided to not doing so in the core of the framework, and we need to support this through 3rd party modules, so I created nest-router a little module that will help you to organize your Routes and it Will give you the ability to create a routes tree.
you should have a look at README file, and the examples folder.
I'm submitting a...
Current behavior
If you import a module inside other module, the controller's routes aren't concatenated.
Expected behavior
I mean, If a have a controller: @controller("animals") in my module animals, and I import a module cats with @controller("cats"), I think that cats route should be: /animals/cats
Environment
[System Information]
NodeJS Version : v10.0.0
NPM Version : 6.0.0
The text was updated successfully, but these errors were encountered: