-
Notifications
You must be signed in to change notification settings - Fork 378
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
Multiple Strings to a single Handler #2815
Comments
I'm not sure that it is a good way to implement such method, but it can be represented like so:
Do we need method for that in library? |
I like this approach, but I would perhaps consider using Method.GET / ("" | "index.html" | "index.htm" | "index") -> handSome |
The disadvantage of /bounty $75 |
💎 $75 bounty • ZIOSteps to solve:
Thank you for contributing to zio/zio-http! Add a bounty • Share on socials
|
💡 @987Nabil submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
Request for a more succinct version of
So personally my preference would be to for both a general solution to map from a collection of Strings to a Routes collection. But also a specific case as I imagine a good proportion of web sites will want to cover the standard Home page entry points.
I'm just starting to try out ZIO, so apologies, I don't think I can give a more detailed view that would be of value.
The text was updated successfully, but these errors were encountered: