@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
37 lines (23 loc) • 931 B
Markdown
lang: en
title: 'API docs: rest.restrouter.find'
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.find.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [RestRouter](./rest.restrouter.md) > [find](./rest.restrouter.find.md)
## RestRouter.find() method
Find a matching route for the given http request
<b>Signature:</b>
```typescript
find(request: Request): ResolvedRoute | undefined;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| request | Request | Http request |
<b>Returns:</b>
[ResolvedRoute](./rest.resolvedroute.md) \| undefined
The resolved route, if not found, `undefined` is returned