@loopback/docs
Version:
Documentation for LoopBack 4
32 lines (20 loc) • 750 B
Markdown
lang: en
title: 'API docs: rest.trierouter.addroutewithpathvars'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.rest.trierouter.addroutewithpathvars.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [TrieRouter](./rest.trierouter.md) > [addRouteWithPathVars](./rest.trierouter.addroutewithpathvars.md)
## TrieRouter.addRouteWithPathVars() method
<b>Signature:</b>
```typescript
protected addRouteWithPathVars(route: RouteEntry): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| route | <code>RouteEntry</code> | |
<b>Returns:</b>
`void`