(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 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 |