ring-swagger

ring-swagger & compojure-api
2018-09-21T03:53:25.000100Z

I am trying to do this on compojure, with rfn but it does not work

(rfn [] (-> (response/resource-response "index.html" {:root "public"})
                 (response/content-type "text/html")))
It works if I return a string though, why is it?