@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
33 lines (22 loc) • 905 B
Markdown
lang: en
title: 'API docs: rest.baseroute._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.baseroute._constructor_.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/rest](./rest.md) > [BaseRoute](./rest.baseroute.md) > [(constructor)](./rest.baseroute._constructor_.md)
## BaseRoute.(constructor)
Construct a new route
<b>Signature:</b>
```typescript
constructor(verb: string, path: string, spec: OperationObject);
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| verb | string | http verb |
| path | string | http request path pattern |
| spec | OperationObject | OpenAPI operation spec |