Fork me on GitHub
#reitit
<
2018-03-11
>
ikitommi05:03:29

@dimovich you need to use wildcard-routes, e.g. ["/css/*" handle-css]. Otherwise, all ring helpers should work: https://github.com/ring-clojure/ring/wiki/Static-Resources

ikitommi05:03:44

Starting to think this should be covered by the reitit-ring in both code & docs.

ikitommi05:03:15

also, why woudn't the handler be data too, just like middleware can be. Would allow same handlers to be reused in multiple places while it's configuration would be read from route data, at router compile time.

dimovich16:03:39

@ikitommi thanks for the suggestions