Permalink
Browse files

Added support for PATCH method

  • Loading branch information...
1 parent 155176e commit 212209ebecd8e2b8638b2e7198de1d3ef3457f9d @weavejester committed May 9, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/compojure/core.clj
View
@@ -141,6 +141,10 @@
[path args & body]
(compile-route :options path args body))
+(defmacro PATCH "Generate a PATCH route."
+ [path args & body]
+ (compile-route :patch path args body))
+
(defmacro ANY "Generate a route that matches any method."
[path args & body]
(compile-route nil path args body))

0 comments on commit 212209e

Please sign in to comment.