Fork me on GitHub
#reitit
<
2021-08-10
>
Ben Sless09:08:24

Should I expect middlewares to be applied only after matching?

ikitommi10:08:49

@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.

ikitommi10:08:49

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