---
lang: en
title: 'API docs: rest.findroute'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.rest.findroute.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [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;
```

