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 7830fc8 commit 68cf40cCopy full SHA for 68cf40c
README.md
@@ -192,6 +192,13 @@ To help setting up custom middleware there is a `compojure.api.core/middlewares`
192
(GET "/ping" [] (ok {:ping "pong"})))))
193
```
194
195
+If you want to wrap you complete app in some middlewares, `defapi` returns handler which you can wrap just like with regular `defroutes`:
196
+
197
+```clojure
198
+(defapi app' ...)
199
+(def app (-> app' (wrap-head)))
200
+```
201
202
## Route macros
203
204
One can use either [vanilla Compojure routes](https://github.com/weavejester/compojure/wiki) or their enhanced versions from `compojure.api.core`.
0 commit comments