[Router] Configure trailing slash on root globally #43059
Labels
Comments
i don't think the name of |
Yes, I agree that the name is not ideal. I choose to use it only for a better comprehension. It can be changed. Maybe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Create a global option to allow configuration of the
trailing_slash_on_root
option at route level.As I am building an api, I never need the trailing slash and I have to mention the option on a lot of place with the
false
value. As for mefalse
should be the default value and I don't remember if I need to configure at the leaf route level or if I can define at the parent level (root level seems to not work), I would like to have aframework.router.trailing_slash_on_root
configuration (name has to be defined) could be an improvement on this.The option appears 53 times in my code, always with false value.
Example
I hope this idea can help some people and I am not the only one concerned. Also I hope to not have missed something in the documentation. ;-)
Thank you.
The text was updated successfully, but these errors were encountered: