@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
133 lines (63 loc) • 1.89 kB
Markdown
---
lang: en
title: 'API docs: rest.routingtable'
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.routingtable.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [RoutingTable](./rest.routingtable.md)
## RoutingTable class
Routing table
**Signature:**
```typescript
export declare class RoutingTable
```
## Constructors
<table><thead><tr><th>
Constructor
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[(constructor)(\_router, \_externalRoutes)](./rest.routingtable._constructor_.md)
</td><td markdown="1">
</td><td markdown="1">
Constructs a new instance of the `RoutingTable` class
</td></tr>
</tbody></table>
## Methods
<table><thead><tr><th>
Method
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td markdown="1">
[describeApiPaths()](./rest.routingtable.describeapipaths.md)
</td><td markdown="1">
</td><td markdown="1">
</td></tr>
<tr><td markdown="1">
[find(request)](./rest.routingtable.find.md)
</td><td markdown="1">
</td><td markdown="1">
Map a request to a route
</td></tr>
<tr><td markdown="1">
[registerController(spec, controllerCtor, controllerFactory)](./rest.routingtable.registercontroller.md)
</td><td markdown="1">
</td><td markdown="1">
Register a controller as the route
</td></tr>
<tr><td markdown="1">
[registerRoute(route)](./rest.routingtable.registerroute.md)
</td><td markdown="1">
</td><td markdown="1">
Register a route
</td></tr>
</tbody></table>