---
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) &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.

**Signature:**

```typescript
export type FindRoute = (request: Request) => ResolvedRoute;
```
**References:** [ResolvedRoute](./rest.resolvedroute.md)


