-
-
Notifications
You must be signed in to change notification settings - Fork 285
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
[BUG] Children Controller Routes should be declared before parent #2706
Comments
Hello @EinfachHans Let me get a time to test if it's possible. See you |
@Romakita maybe we could make this as a "opt-in" feature first via the configuration, then change the default & deprecate in next major and remove the config again in the next major after that? |
Yes, when can try to do that. The problem is probably located here:
I'm a bit over staffed to do that. But If somebody had a time to add the opt-in, I'll be happy to review the PR ;) See you @EinfachHans Romain |
@Romakita Do you have a suggested name for the config parameter? |
Hum 😅... maybe appendNestedRoutesBefore ? |
@Romakita just want to start a new PR. I tried to get the tests run in the current production branch, without changed made and get the following error:
Any idea why? |
Just run test for the concerned package ;) Run entire test on this repo will take along time. Also have you installed the project using ˋyarn install` ? See you |
Yes, only running the |
🎉 This issue has been resolved in version 7.70.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Describe the bug
I have the following setup:
when performing a POST against
/parent/children
, this is mapped into the post of theParentController
, becausechildren
also matches:id
.To Reproduce
See above, let me know if you need a repo
Expected behavior
I think children routes should be always declared before the parent routes, does this make sense or brings other problems i don't see atm? 🤔
Code snippets
No response
Repository URL example
No response
OS
macOS
Node version
20.12.2
Library version
7.69.3
Additional context
No response
The text was updated successfully, but these errors were encountered: