We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 226e4f5 commit dda980eCopy full SHA for dda980e
src/compojure/api/api.clj
@@ -65,4 +65,5 @@
65
" (:doc (meta #'compojure.api.middleware/api-middleware)))}
66
defapi
67
[name & body]
68
+ {:style/indent 1}
69
`(def ~name (api ~@body)))
src/compojure/api/core.clj
@@ -20,6 +20,7 @@
20
"Define a Ring handler function from a sequence of routes.
21
The name may optionally be followed by a doc-string and metadata map."
22
[name & routes]
23
24
(let [[name routes] (macro/name-with-attributes name routes)]
25
`(def ~name (routes ~@routes))))
26
@@ -28,6 +29,7 @@
28
29
30
Equivalent to: `(let [...] (routes ...))`"
31
[bindings & body]
32
+ {:style/indent 2}
33
`(let ~bindings (routes ~@body)))
34
35
(defn undocumented
0 commit comments