weavejester/compojure — pull request #72 by paraseba (2012-12-11 07:07:50+00:00)
Title: ANY accepts a set of methods

Sometimes it is useful to match a set of methods. Right now a compojure route can only accept only one or all HTTP verbs. This change makes it possible to accept any subset of the verbs

After this change the following syntaxes are valid

(ANY "/foo" [] resp) (this is the old syntax, of course, still valid)

(ANY #{:get :put} "/foo" [] resp)

The second version will match only if the method is :get or :put