The middlewares module of the webserver adapter.
This module makes possible to register pre-routing and post-routing middlewares to the web server via the configuration.
Used only internally by the adapter.
Methods
(static) addMiddlewares(container, server, middlewares)
Add middlewares to the webserver
Parameters:
Name | Type | Description |
---|---|---|
container |
Object | The container context |
server |
Object | The server object |
middlewares |
Object | It is an object, that has two |