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 we GET from the following url : /api/accounts/12345/products/ it will end up in the accounts controller with param action="products"
Expected behavior
When evaluating a route, I think the static params should have precedence over the optional ones. Now they are evaluated in alphabetical order (which seems nonsense)
Known workarounds
If we rename the accounts controller "zaccount" (to put after the "products" alphabetical position when evaluating the route). Then its gonna be evaluated first. And both controllers works as planned.
The text was updated successfully, but these errors were encountered:
Given the following controller declarations:
If we
GET
from the following url :/api/accounts/12345/products/
it will end up in the accounts controller with param action="products"Expected behavior
When evaluating a route, I think the static params should have precedence over the optional ones. Now they are evaluated in alphabetical order (which seems nonsense)
Known workarounds
If we rename the accounts controller "zaccount" (to put after the "products" alphabetical position when evaluating the route). Then its gonna be evaluated first. And both controllers works as planned.
The text was updated successfully, but these errors were encountered: