@loopback/docs
Version:
Documentation for LoopBack 4
38 lines (25 loc) • 832 B
Markdown
lang: en
title: 'API docs: rest.trie.match'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.rest.trie.match.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [Trie](./rest.trie.md) > [match](./rest.trie.match.md)
## Trie.match() method
Match a route path against the trie
<b>Signature:</b>
```typescript
match(path: string): (ResolvedNode<T> & {
node: NodeWithValue<T>;
}) | undefined;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| path | <code>string</code> | The route path, such as <code>/customers/c01</code> |
<b>Returns:</b>
`(ResolvedNode<T> & {
node: NodeWithValue<T>;
}) | undefined`