Closed reynir closed 3 years ago
I don't find much documentation on how the routes work, especially with splats (* and **).
*
**
https://github.com/rgrinberg/opium/blob/5e3d601a3ef7b9fdbcc7ea93fd698b6adc2a45c5/opium/src/route.ml#L83
I would expect we should add the rest of the URL path to matches.splat instead of ignoring it?
matches.splat
The line after has a comment that seem to me to describes exactly the opposite of what the code does :-)
https://github.com/rgrinberg/opium/blob/5e3d601a3ef7b9fdbcc7ea93fd698b6adc2a45c5/opium/src/route.ml#L84
I don't find much documentation on how the routes work, especially with splats (
*
and**
).https://github.com/rgrinberg/opium/blob/5e3d601a3ef7b9fdbcc7ea93fd698b6adc2a45c5/opium/src/route.ml#L83
I would expect we should add the rest of the URL path to
matches.splat
instead of ignoring it?