Hello all,I am trying to understand how to build the routes for the following urls but it seems that I can't quite get them right:The first one is:http://www.example.com?foo=1&bar=100The above is a GET request with two query parameters, foo and bar and both of them should only accept numeric values.And the second url is:http://www.example.com?id[]=1&id[]=5&id[]=7
The above is a GET request again, with an unknown number of id parameters which should only accept numeric values.Can someone explain to me how to define those routes with defroutes and add regex for them to accept only the values I want?Thank you for your time--
You received this message because you are subscribed to the Google Groups "Compojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email to compojure+...@googlegroups.com.
To post to this group, send email to comp...@googlegroups.com.
Visit this group at http://groups.google.com/group/compojure?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
However, it would make more sense for you to return a 400 response if the user supplies bad parameters, rather than just not matching the route.