Page Contents

Home > @loopback/rest > Trie > create

Trie.create() method

Create a node for a given path template

Signature:

create(routeTemplate: string, value: T): Node<T>;

Parameters

Parameter Type Description
routeTemplate string  
value T Value of the route

Returns:

Node<T>