Skip to content

Commit 226e4f5

Browse files
committed
Add Cider indent spec (2) for route macros
1 parent eded74c commit 226e4f5

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

src/compojure/api/core.clj

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@
4848
wrap-mw# (mw/compose-middleware ~middleware)]
4949
(routes/create nil nil {} [body#] (wrap-mw# body#))))
5050

51-
(defmacro context [& args] (meta/restructure nil args {:context? true}))
52-
53-
(defmacro GET [& args] (meta/restructure :get args nil))
54-
(defmacro ANY [& args] (meta/restructure nil args nil))
55-
(defmacro HEAD [& args] (meta/restructure :head args nil))
56-
(defmacro PATCH [& args] (meta/restructure :patch args nil))
57-
(defmacro DELETE [& args] (meta/restructure :delete args nil))
58-
(defmacro OPTIONS [& args] (meta/restructure :options args nil))
59-
(defmacro POST [& args] (meta/restructure :post args nil))
60-
(defmacro PUT [& args] (meta/restructure :put args nil))
51+
(defmacro context [& args] {:style/indent 2} (meta/restructure nil args {:context? true}))
52+
53+
(defmacro GET [& args] {:style/indent 2} (meta/restructure :get args nil))
54+
(defmacro ANY [& args] {:style/indent 2} (meta/restructure nil args nil))
55+
(defmacro HEAD [& args] {:style/indent 2} (meta/restructure :head args nil))
56+
(defmacro PATCH [& args] {:style/indent 2} (meta/restructure :patch args nil))
57+
(defmacro DELETE [& args] {:style/indent 2} (meta/restructure :delete args nil))
58+
(defmacro OPTIONS [& args] {:style/indent 2} (meta/restructure :options args nil))
59+
(defmacro POST [& args] {:style/indent 2} (meta/restructure :post args nil))
60+
(defmacro PUT [& args] {:style/indent 2} (meta/restructure :put args nil))

0 commit comments

Comments
 (0)