Skip to content

Commit

Permalink
Add Cider indent spec (2) for route macros
Browse files Browse the repository at this point in the history
  • Loading branch information
ikitommi committed Feb 2, 2016
1 parent eded74c commit 226e4f5
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/compojure/api/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@
wrap-mw# (mw/compose-middleware ~middleware)]
(routes/create nil nil {} [body#] (wrap-mw# body#))))

(defmacro context [& args] (meta/restructure nil args {:context? true}))

(defmacro GET [& args] (meta/restructure :get args nil))
(defmacro ANY [& args] (meta/restructure nil args nil))
(defmacro HEAD [& args] (meta/restructure :head args nil))
(defmacro PATCH [& args] (meta/restructure :patch args nil))
(defmacro DELETE [& args] (meta/restructure :delete args nil))
(defmacro OPTIONS [& args] (meta/restructure :options args nil))
(defmacro POST [& args] (meta/restructure :post args nil))
(defmacro PUT [& args] (meta/restructure :put args nil))
(defmacro context [& args] {:style/indent 2} (meta/restructure nil args {:context? true}))

(defmacro GET [& args] {:style/indent 2} (meta/restructure :get args nil))
(defmacro ANY [& args] {:style/indent 2} (meta/restructure nil args nil))
(defmacro HEAD [& args] {:style/indent 2} (meta/restructure :head args nil))
(defmacro PATCH [& args] {:style/indent 2} (meta/restructure :patch args nil))
(defmacro DELETE [& args] {:style/indent 2} (meta/restructure :delete args nil))
(defmacro OPTIONS [& args] {:style/indent 2} (meta/restructure :options args nil))
(defmacro POST [& args] {:style/indent 2} (meta/restructure :post args nil))
(defmacro PUT [& args] {:style/indent 2} (meta/restructure :put args nil))

0 comments on commit 226e4f5

Please sign in to comment.