I have tried the following:
(defresource index
:available-media-types ["text/html"]
:handle-ok (assoc (resource-response "index.html" {:root "public"})
:headers {"Content-Type" "text/html; charset=UTF-8"})
)
But this doesn't work. I get the url of the index.html file in the body rather than the content itself. How to fix this?