@loopback/docs
Version:
Documentation for LoopBack 4
33 lines (22 loc) • 843 B
Markdown
lang: en
title: 'API docs: rest.route.(constructor)'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
permalink: /doc/en/lb4/apidocs.rest.route.(constructor).html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [Route](./rest.route.md) > [(constructor)](./rest.route.(constructor).md)
## Route.(constructor)
Constructs a new instance of the `Route` class
<b>Signature:</b>
```typescript
constructor(verb: string, path: string, spec: OperationObject, _handler: Function);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| verb | <code>string</code> | |
| path | <code>string</code> | |
| spec | <code>OperationObject</code> | |
| \_handler | <code>Function</code> | |