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