With Compojure I can serve static resources like so:
(defroutes routes
(route/resources "/"))
Following the Yada docs I have this working:
(def server
(listener
["/"
[["hello" (as-resource "Hello World!")]
["test" (resource {:produces "text/plain"
:response "This is a test!"})]
[true (as-resource nil)]]]
{:port 3000}))
But how do I make Yada serve resources from the file system?
I ended up finding the answer here: Wrapping resource handlers with bidi