Page Contents
Home > @loopback/rest > Trie
Trie class
An implementation of trie for routes. The key hierarchy is built with parts of the route path delimited by /
Signature:
export declare class Trie<T>
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
root | readonly |
Node<T> |
Methods
Method | Modifiers | Description |
---|---|---|
create(routeTemplate, value) | Create a node for a given path template | |
list() | List all nodes with value of the trie | |
match(path) | Match a route path against the trie |