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.
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}
andfoo/baz
and visit/foo/baz
it will treat it as dynamic routefoo/{bar}
and call its callback. This PR fixes it so now you static routes have higher priority.