Skip to content

Arrange routes in descending order of specificity #397

@hueniverse

Description

@hueniverse

Routes are matched in the order they are added. This is wrong as it can introduce unexpected routing decisions. Instead, the matching should be from the most to least specific. For example:

/hello should come before /{id}
/a/{b} before /{a*2}

Metadata

Metadata

Assignees

Labels

featureNew functionality or improvement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions