fengsp / pencil

A web application microframework for Rust
https://fengsp.github.io/pencil/
Other
870 stars 43 forks source link

URL routing with query parameters #44

Open golddranks opened 7 years ago

golddranks commented 7 years ago

Hi, I'm trying to define a RESTful API, and defined a route like this: app.put("/api/words/<id:int>?publish", "set_publish_words", set_publish); However, it seems that having query parameters like "?publish" is not supported.

In my opinion, they should EITHER 1) be supported (this would be nice) 2) or the call should fail, to signal that they, in fact, aren't supported.

WonderboyFromMars commented 7 years ago

I run into the same problem. Support for parameters would be very nice indeed