thruster-rs / Thruster

A fast, middleware based, web framework written in Rust
MIT License
1.06k stars 47 forks source link

bug: Fix subapp wildcard conflict issue #142

Closed trezm closed 4 years ago

trezm commented 4 years ago

There is an issue when adding a subapp with a wildcard wherein sibling routes are not properly propagated to the new tree. This means that having these routes:

/:id /do-something

makes only /:id propagate correctly. This PR fixes that by always propagating sibling routes regardless of the presence of a wildcard.