@loopback/docs
Version:
Documentation for LoopBack 4
30 lines (20 loc) • 733 B
Markdown
lang: en
title: 'API docs: rest.restrouter'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
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
<b>Signature:</b>
```typescript
export interface RestRouter
```
## Methods
| Method | Description |
| --- | --- |
| [add(route)](./rest.restrouter.add.md) | Add a route to the router |
| [find(request)](./rest.restrouter.find.md) | Find a matching route for the given http request |
| [list()](./rest.restrouter.list.md) | List all routes |