Fork me on GitHub
Ferdinand Beyer16:05:16

Something I stumbled over when I was first using reitit and what I still see many people stumble over (including those using Luminus) is how to combine Reitit middleware with default ring middleware efficiently. For example, ring-defaults includes middleware for static resources (`wrap-resources`) that makes reitit’s resource handler obsolete. This can be confusing because configuring the resource handler seemingly has no effect. Also, when using Reitit you probably prefer data-driven middleware over ring-default’s function chain, as a vector of middleware is easier to inspect and reason about. So my question is: Is there already some kind of library out there that “translates” ring-defaults to Reitit? I’m thinking of creating one but want to make sure it does not exist already 🙃