From 226e4f51d9bba7fbf1c65bb3654aa57868f2d8cf Mon Sep 17 00:00:00 2001 From: Tommi Reiman Date: Tue, 2 Feb 2016 19:16:34 +0200 Subject: [PATCH] Add Cider indent spec (2) for route macros --- src/compojure/api/core.clj | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/compojure/api/core.clj b/src/compojure/api/core.clj index e7bf726e..fc4621e2 100644 --- a/src/compojure/api/core.clj +++ b/src/compojure/api/core.clj @@ -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))