Serve up an index file for a route if it exists.
Clojure
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/ring/middleware
.gitignore
README.textile
project.clj

README.textile

Ring Middleware Index File

(wrap-index-file “/some/route”)

Requests to /some/route will redirect to /some/route/. Requests to /some/route/ will return the index.html file.

Options

:path

Specify an alternate path (default is resources/public) for static files..

:index

Specify an alternate index file (default is `index.html`).

License

EPL, Same as Clojure