(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 ...))`
(middleware middleware & body)
Wraps routes with given middlewares using thread-first macro.
Note that middlewares will be executed even if routes in body do not match the request uri. Be careful with middlewares that have side-effects.
Wraps routes with given middlewares using thread-first macro. Note that middlewares will be executed even if routes in body do not match the request uri. Be careful with middlewares that have side-effects.
(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 is a website building & hosting documentation for Clojure/Script libraries
× close