Fork me on GitHub
Ben Sless09:08:24

Should I expect middlewares to be applied only after matching?


@ben.sless yes, that’s the grand design of reitit. Each route has it’s own (optimized) chain of mw, to be applied if the route matches.


if you wrap mw on top of the ring-handler returned by ring-router, then they effect everything, of course.

👍 2
Ben Sless10:08:37

Yes, I found out after asking

Ben Sless10:08:47

Found myself fighting with trailing slashes