---
lang: en
title: 'API docs: express.middlewareregistry'
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.middlewareregistry.html
---

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

[Home](./index.md) &gt; [@loopback/express](./express.md) &gt; [MiddlewareRegistry](./express.middlewareregistry.md)

## MiddlewareRegistry interface

A context that allows middleware registration

<b>Signature:</b>

```typescript
export interface MiddlewareRegistry 
```

## Methods

|  Method | Description |
|  --- | --- |
|  [expressMiddleware(key, middleware, options)](./express.middlewareregistry.expressmiddleware.md) | Bind an Express middleware to this server context |
|  [expressMiddleware(middlewareFactory, middlewareConfig, options)](./express.middlewareregistry.expressmiddleware_1.md) | Bind an Express middleware to this server context |
|  [middleware(middleware, options)](./express.middlewareregistry.middleware.md) | Register a middleware function or provider class |


