---
lang: en
title: 'API docs: rest.routesource._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.routesource._constructor_.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/rest](./rest.md) &gt; [RouteSource](./rest.routesource.md) &gt; [(constructor)](./rest.routesource._constructor_.md)

## RouteSource.(constructor)

Constructs a new instance of the `RouteSource` class

<b>Signature:</b>

```typescript
constructor(value: RouteEntry);
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  value | [RouteEntry](./rest.routeentry.md) |  |


