reitit icon indicating copy to clipboard operation
reitit copied to clipboard

Please warn on (-> my-routes (reitit.core/router) (ring/ring-handler))

Open theronic opened this issue 3 years ago • 0 comments

Just lost 2 hours because I was passing (reitit.core/router my-routes) to (reitit.ring/ring-handler) instead of passing (reitit.ring/router my-routes). It's the second time this caught me over a two-year span.

Could Reitit warn the user if the Ring handler cannot handle the router passed to it? Or would it be possible for ring-handler to take a core router? It seems like the domain of translating from Ring -> Reitit matching should be handled by the ring-specific handler. (haven't looked into the underlying protocols)

theronic avatar Nov 17 '21 20:11 theronic