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
Add case-insensitive routing #2354
Conversation
…outes (defaults to false) * DefaultResponder will configure TrieRouter appropriately if set to true * Appropriate test
Someone asked yesterday on Discord about case insensitive routing. I don't know that I'd ever actually ADVISE someone to do this, but since TrieRouter can do it, this PR adds a configurable setting to Whether this is a Good Idea is up for debate and feel free to skip approving it if not, hah |
I'm +1 for at least exposing this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to adding this, thanks! Would you mind add a note to https://github.com/vapor/docs/blob/master/4.0/docs/routing.md as well?
Please format the PR title / body as release notes, too. |
Initial PR comments reproduced:
Allows configuring Vapor to use case insensitive route handlingEG:
Note that case-insensitive routing is somewhat less performant, and only applies to constant PathComponents - eg: |
These changes are now available in 4.12.0 |
missing an "I" in the app.routes.caseInsenstive |
Allows configuring case-insensitive routing (#2354).