@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
71 lines (37 loc) • 1.1 kB
Markdown
---
lang: en
title: 'API docs: rest.restrouter'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/rest
permalink: /doc/en/lb4/apidocs.rest.restrouter.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [RestRouter](./rest.restrouter.md)
## RestRouter interface
**Signature:**
```typescript
export interface RestRouter
```
## Methods
<table><thead><tr><th>
Method
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[add(route)](./rest.restrouter.add.md)
</td><td markdown="1">
Add a route to the router
</td></tr>
<tr><td markdown="1">
[find(request)](./rest.restrouter.find.md)
</td><td markdown="1">
Find a matching route for the given http request
</td></tr>
<tr><td markdown="1">
[list()](./rest.restrouter.list.md)
</td><td markdown="1">
List all routes
</td></tr>
</tbody></table>