-
Notifications
You must be signed in to change notification settings - Fork 35
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
Support for URL parameters #89
Comments
Ah nice, the preview/macro branch provides a glimpse of what I want it to eventually achieve when macros become feasible to use in lightweight packages. My plan is to eventually match some elements within the route to the handler as named parameters removing the need to force unwrap: @HTTPRoute("/ax/objects/:id")
func getObject(id: Int) -> HTTPResponse My imagination had struggled to think up what this future syntax would be maybe |
I've started an implementation of this that builds on the changes in #91 at: tonyarnold#1 |
Released in 0.15.0 |
Vapor and Hummingbird both have a great feature where you can specify post parameters as part of the URL/Route using the form:
Where
:id
is accessible as a parameter that is replaced by the passed value.It would be great to have this same support in FlyingFox at some point!
The text was updated successfully, but these errors were encountered: