https://github.com/metosin/reitit/blob/master/doc/ring/static.md
is there a way to do this
(ring/create-resource-handler {:path "/"})
to serve up your frontend but not have the index.html show in the browser?
Or no. That will still create the redirect response.
I guess I've always written the index handler myself, instead of using the Reitit helpers.
@juhoteperi my goal is just to have the ability to serve up the frontend from the backend
["/" (constantly (ring.util.response/resource-response "public/index.html"))]
that makes sense. that’s actually the same way i’ve done it in the past with ring+compojure; was too hung up on the reitit helpers i suppose
(defn handle-index [req]
;; NOTE: this will deliver your index.html
(-> (response/resource-response "index.html" {:root "public"})
(response/content-type "text/html")))
thanks