This PR fixes the handling of exact path matches by checking if the requested path is an exact match for any of the patterns when more than 1 pattern matches.
For example, before this PR, a request for /users/me fails due to matching multiple paths:-
Exception: Ambiguous URL /users/me matches more than one canonical path pattern: /users/{id}, /users/me;
this is likely a bug.
This PR fixes the handling of exact path matches by checking if the requested path is an exact match for any of the patterns when more than 1 pattern matches.
For example, before this PR, a request for
/users/me
fails due to matching multiple paths:-After this PR, it works as expected:-