UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

34 lines (23 loc) 900 B
--- lang: en title: 'API docs: rest.route._constructor_' 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.route._constructor_.html --- <!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [Route](./rest.route.md) &gt; [(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 | string | | | path | string | | | spec | OperationObject | | | \_handler | Function | |