fengsp/pencil

URL routing with query parameters

golddranks opened this issue · 1 comments

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.

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