Skip to content
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

feat: add Server option of WithStripTrailingSlash #432

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dylanhitt
Copy link
Collaborator

closes #366

Add the ability for a user to implicitly strip all slashes from all routes as well as strip all ending slashes from all requests at the fuego Server level.

This PR only makes this configurable at the level of the Server. This does come with a utility function to be able to configure path stripping at the route level but it's not incredibly useful (our uses should just do this themselves when they declare the path).

Let me know what you think. It may be worth make that option private as it's not really useful unless you're stripping at the global level.

Add the ability for a user to implicitly strip all slashes
from all routes as well as strip all ending slashes from all
requests at the fuego Server level.
@dylanhitt
Copy link
Collaborator Author

@EwenQuim I will be away from a computer starting friday until April. Please feel free to make changes to this.

@EwenQuim
Copy link
Member

EwenQuim commented Mar 5, 2025

I will be away from a computer starting friday until April

Understood. Have a good time!

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.

Path parsing issue
2 participants