Edit this topic

Express route handler

: shell

: route-handler

: express

: /modules/core/express/services/express-route-handler.js

: https://github.com/DecentCMS/DecentCMS/blob/master/modules/core/express/services/express-route-handler.js

class: ExpressRouteHandler

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.

Param Type Description
context object The context.
context.request IncomingMessage The request.
context.response ServerResponse The response.
next function The callback.