Fork me on GitHub
#reitit
<
2018-07-29
>
pauld13:07:04

Can someone explain "conflicting paths" as described here: https://metosin.github.io/reitit/basics/route_conflicts.html

pauld13:07:30

The otherwise very good documentation there does not provide enough detail on how the routes are matched for someone new to routing libraries.

pauld13:07:13

Ok, nevermind... I think I have it! haha

miikka12:07:36

@U0FH1UL84 Hey, by the way, if you have a good way of explaining it, a contribution to the docs would be most welcome! The source is here: https://github.com/metosin/reitit/blob/master/doc/basics/route_conflicts.md

pauld13:07:32

Just needed to talk to the duck.

🦆 12
aaron5123:07:42

With reitit+schema, how to enforce “one or the other parameter must be present but not both.” Is this coercion? Or belongs in the handler? If it belongs in the handler, then can we still use coerce-exceptions-middleware to print a friendly error?