(def public (.getPath (io/resource "www/")))
(def srv-opts {:port 8080})
(http/defroutes app
(http/GET "/" [] {:body (views/index)})
(route/resources public)
(route/not-found "<h1>Page not found</h1>"))
(defn -main []
(println "Starting server on port:" (srv-opts :port))
(println "Public dir:" public)
(httpkit/run-server app srv-opts)
(clj/repl))
I have the directory resources/www, when I try and link to css/styles.css it's not found. When looking in the dev console there is nothing being served for static resources.
I have the directory
resources/www
, when I try and link tocss/styles.css
it's not found. When looking in the dev console there is nothing being served for static resources.