What is the difference in using -
(route/files "/" {:root "yeoman/app"})
(route/resources "/" {:root "yeoman/app"})
for setting the root of the static folder ?
Thanks, Murtaza
resources
, like clojure.java.io/resource
, will work relative to your classpath and can get your data even if its in a jar/war instead of on the local file system.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With