Matches the first route that matches the given path.
The routes to match against.
The path to match.
The first matching route, or null if none matches.
Matches the first route that matches the given path.