diff --git a/src/compojure/api/api.clj b/src/compojure/api/api.clj index 9515457a..dcb224ea 100644 --- a/src/compojure/api/api.clj +++ b/src/compojure/api/api.clj @@ -65,4 +65,5 @@ " (:doc (meta #'compojure.api.middleware/api-middleware)))} defapi [name & body] + {:style/indent 1} `(def ~name (api ~@body))) diff --git a/src/compojure/api/core.clj b/src/compojure/api/core.clj index fc4621e2..6b290c36 100644 --- a/src/compojure/api/core.clj +++ b/src/compojure/api/core.clj @@ -20,6 +20,7 @@ "Define a Ring handler function from a sequence of routes. The name may optionally be followed by a doc-string and metadata map." [name & routes] + {:style/indent 1} (let [[name routes] (macro/name-with-attributes name routes)] `(def ~name (routes ~@routes)))) @@ -28,6 +29,7 @@ Equivalent to: `(let [...] (routes ...))`" [bindings & body] + {:style/indent 2} `(let ~bindings (routes ~@body))) (defn undocumented