I have a static file called index.html that I\'d like to serve when someone requests /. Usually web servers do this by default, but Compojure doesn
index.html
/
This works just fine. No need to write a ring middle-ware.
(:require [clojure.java.io :as io]) (defroutes app-routes (GET "/" [] (io/resource "public/index.html")))