sup, is there any nice middleware to serve a random folder that is not on resources/ of my project? Can't find it and been googling for a while
thinking something akin to python -m SimpleHTTPServer
, which serves the folder where you run that command
weird, can't find anything
I'm using reitit, which includes something like I'm looking for but only for io/resources https://github.com/metosin/reitit/blob/master/doc/ring/static.md
seems like I'm gonna have to roll my own
hmmmm it seems like ring's wrap-file may be what I need. Despite the name, it seems like it also wraps directories
effectively: (-> my-handler (ring-file/wrap-file "/path"))
is what I was looking for.