(generate-ring-handler {:keys [assets] :as api-def})
Generates a ring handler for asset managing. api-def
should have an assets
key:
:router
{:assets ["/public" ["root1" ... "rootN"]}
The assets will be served from the classpath, with the optional root
.
All roots will be sequentially tested until one of them returns an asset.
Generates a ring handler for asset managing. `api-def` should have an `assets` key: ``` :router {:assets ["/public" ["root1" ... "rootN"]} ``` The assets will be served from the *classpath*, with the optional `root`. All roots will be sequentially tested until one of them returns an asset.
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 |