Lemon-Framework / Lemon

🍋 A php microframework
https://lemon-framework.github.io/docs/
GNU General Public License v3.0
24 stars 8 forks source link

[Routing] Prioritize static routes #167

Closed tenmajkl closed 8 months ago

tenmajkl commented 8 months ago

When working with dynamic routes, you can have situation where your static route is treated as dynamic. For example if I have routes foo/{bar} and foo/bazand visit /foo/baz it will treat it as dynamic route foo/{bar} and call its callback. This PR fixes it so now you static routes have higher priority.