---
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/strongloop/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) &gt; [@loopback/rest](./rest.md) &gt; [BaseRoute](./rest.baseroute.md) &gt; [(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 |


