ring.middleware.file
(source)Middleware to serve files from a directory.
Most of the time you should prefer ring.middleware.resource instead, as this
middleware will not work with files in jar or war files.
For more info about this library see:
https://github.com/ring-clojure/ring/wikiPublic Variable | Short Description |
---|---|
file-request (clj) | If request matches a static file, returns it in a response. |
wrap-file (clj) | Wrap an handler such that the directory at the given root-path is checked for a static file with which to respond to the request, proxying the request to the wrapped handler if such a file does not exist. |