Skip to content

Conversation

@specialtactics
Copy link
Member

For issue #1232

I spent a bit of time today looking at this, and it seems like there are very big deviations between Laravel's and Dingo's routing workflow. Whether this is by design or not... I really don't know. Anyway, I implemented this in a fairly simple way after some digging and digging, and it does seem to work for me, and passed a lot of unit tests in some large projects.

At the same time, the functionality is not 100% compatible with Laravel's Router - which checks each route individually, including this param pattern matching (until it finds the matching route), whereas this implementation does the same without param pattern matching, and then does that validation for the one found route at the end.

This could lead to inconsistent results if there are very ambiguous and routes defines (which is rather sloppy in any case).

Keen to have other people give this a try and give me feedback before I merge.

@specialtactics
Copy link
Member Author

I've done fair bit of testing and this seems to work, merging now due to lack of feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant