Page Contents
Home > @loopback/rest > Trie > match
Trie.match() method
Match a route path against the trie
Signature:
match(path: string): (ResolvedNode<T> & {
node: NodeWithValue<T>;
}) | undefined;
Parameters
Parameter | Type | Description |
---|---|---|
path | string | The route path, such as /customers/c01 |
Returns:
(ResolvedNode<T> & { node: NodeWithValue<T>; }) | undefined