@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
26 lines (17 loc) • 728 B
Markdown
lang: en
title: 'API docs: rest.findroute'
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.findroute.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [FindRoute](./rest.findroute.md)
## FindRoute type
Find a route matching the incoming request. Throw an error when no route was found.
<b>Signature:</b>
```typescript
export declare type FindRoute = (request: Request) => ResolvedRoute;
```
<b>References:</b> [ResolvedRoute](./rest.resolvedroute.md)