pub fn route_of(path: &str) -> Option<Route>Expand description
Match a path against the 0.2.0 route table.
The order of the arms is the order upstream registers them, and it is load-bearing in two
places: PromiseRouter.match returns the first route whose layer matches
(PromiseRouter.js:90-105), so /users/me has to precede /users/:objectId and
/sessions/me has to precede /sessions/:objectId. Here the literals are matched before the
parameterized arms for the same reason, spelled out rather than left to declaration order.