(defroutes name & routes)Define a Ring handler function from a sequence of routes. The name may optionally be followed by a doc-string and metadata map.
Define a Ring handler function from a sequence of routes. The name may optionally be followed by a doc-string and metadata map.
(let-routes bindings & body)Takes a vector of bindings and a body of routes.
Equivalent to: (let [...] (routes ...))
Takes a vector of bindings and a body of routes. Equivalent to: `(let [...] (routes ...))`
(ring-handler handler)Creates vanilla ring-handler from any invokable thing (e.g. compojure-api route)
Creates vanilla ring-handler from any invokable thing (e.g. compojure-api route)
(route-middleware middleware & body)Wraps routes with given middlewares using thread-first macro.
Wraps routes with given middlewares using thread-first macro.
(routes & handlers)Create a Ring handler by combining several handlers into one.
Create a Ring handler by combining several handlers into one.
(undocumented & handlers)Routes without route-documentation. Can be used to wrap routes, not satisfying compojure.api.routes/Routing -protocol.
Routes without route-documentation. Can be used to wrap routes, not satisfying compojure.api.routes/Routing -protocol.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |