---
lang: en
title: 'API docs: express.expressmiddlewareinterceptorprovider._constructor_'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/express
permalink: /doc/en/lb4/apidocs.express.expressmiddlewareinterceptorprovider._constructor_.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/express](./express.md) &gt; [ExpressMiddlewareInterceptorProvider](./express.expressmiddlewareinterceptorprovider.md) &gt; [(constructor)](./express.expressmiddlewareinterceptorprovider._constructor_.md)

## ExpressMiddlewareInterceptorProvider.(constructor)

Constructs a new instance of the `ExpressMiddlewareInterceptorProvider` class

<b>Signature:</b>

```typescript
constructor(middlewareFactory: ExpressMiddlewareFactory<CFG>, middlewareConfig?: CFG | ContextView<CFG>);
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  middlewareFactory | [ExpressMiddlewareFactory](./express.expressmiddlewarefactory.md)<!-- -->&lt;CFG&gt; |  |
|  middlewareConfig | CFG \| [ContextView](./context.contextview.md)<!-- -->&lt;CFG&gt; | <i>(Optional)</i> |


