Skip to content

Instantly share code, notes, and snippets.

@rothfield
Created February 17, 2014 00:32
Show Gist options
  • Save rothfield/9042717 to your computer and use it in GitHub Desktop.
Save rothfield/9042717 to your computer and use it in GitHub Desktop.
(defn wrap-dir-index [handler]
(fn [req]
(handler
(update-in req [:uri]
#(if (= "/" %) "/index.html" %))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment