Express route handler
: shell
: express
: route-handler
: /modules/core/express/services/express-route-handler.js
ExpressRouteHandler
Kind: global class
new ExpressRouteHandler(scope)
A route handler that delegates to Express.
| Param | Type | Description |
|---|---|---|
| scope | object |
The scope |
expressRouteHandler.handle(context, next)
Handles a request by passing it over to the Express pipeline.
Kind: instance method of ExpressRouteHandler
| Param | Type | Description |
|---|---|---|
| context | object |
The context. |
| context.request | IncomingMessage |
The request. |
| context.response | ServerResponse |
The response. |
| next | function |
The callback. |