-
Notifications
You must be signed in to change notification settings - Fork 266
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
Is Giraffe.EndpointRouting considered best practice? #534
Comments
Good question! I would like to know as well. |
Yes, the Endpoint Routing approach is the recommended way. All routing in ASP.NET Core was migrated to comply with the Endpoint Routing API I believe so it makes only sense for Giraffe to also follow this path as it will naturally have a higher ability to interop with other middlewares and libraries wihch use the Endpoint Routing APIs. |
I added to the documentation the information that Please, open a follow-up issue or start a discussion if you need more clarification or would like to get deeper into this topic. |
Giraffe currently supports a few router types like:
There may be more but these are the ones I see prevalent in docs / online.
I am particularly curious about the direction the framework is going in terms of routing as I have little context on this.
Why do I care / why am I asking?
Problem: Confusion among new-comers for getting setup "right"
"Right" / "Best Practice" is always debatable but typically I see providing a sane default / recommendation as helpful for adoption.
Routing Best Practice
Based on my current knowledge / research it seems that Endpoint Routing is the future of Giraffe. Saturn seems to agree
Based on tradeoffs I think this seems reasonable:
Pros
Cons
Next Steps
Curious if people have thoughts on this / think this matters.
In particular, some perspectives I think of that could be valuable:
The text was updated successfully, but these errors were encountered: