Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What about nested routers? #256

Closed
gelito opened this issue Nov 18, 2017 · 3 comments
Closed

What about nested routers? #256

gelito opened this issue Nov 18, 2017 · 3 comments

Comments

@gelito
Copy link
Contributor

gelito commented Nov 18, 2017

Hi all,

I'm starting with NextJS (it looks awesome, great job!) but I have a doubt.

I see twice the documentation, but I don't see anything about nested routers. How can I do it??

Something like (/cats/:shomecat/dogs/).

I see that I can do it if in the dogsController:
@controller('cats/:hash/dogs')

But, what about the possibility to nested routers?? Import the dogsModule inside the catsModule and avoid the 'cats/:hash/dogs'.

A reference/example on pure Javascript + Express:
http://katieleonard.ca/blog/2016/nested-routes-with-expressjs/

@shekohex
Copy link
Contributor

I think we already discussing this in #255
check this out.

@gelito
Copy link
Contributor Author

gelito commented Nov 19, 2017

Thanks @shekohex it's the same! Sorry, I close this! ;-)

@gelito gelito closed this as completed Nov 19, 2017
@lock
Copy link

lock bot commented Sep 25, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants