(create)
creates an API handler with a closure around the router
creates an API handler with a closure around the router
(preprocess request spec coercer)
checks that the passed request conforms to spec and coerce its params if so. Returns a possibly modified request.
We do it like this instead of creating a middleware for readability. We need access to the path parameters which are only added after the route has been matched.
See: https://groups.google.com/forum/?hl=en#!topic/compojure/o5l9m7nbGlE
checks that the passed request conforms to spec and coerce its params if so. Returns a possibly modified request. We do it like this instead of creating a middleware for readability. We need access to the path parameters which are only added after the route has been matched. See: https://groups.google.com/forum/?hl=en#!topic/compojure/o5l9m7nbGlE
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close