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 /


export declare class Trie<T> 


Property Modifiers Type Description
root   Node<T>  


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