@loopback/docs
Version:
Documentation for LoopBack 4
24 lines (16 loc) • 635 B
Markdown
lang: en
title: 'API docs: rest.findroute'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/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;
```