Type Alias AddGatewayRouteOptions

AddGatewayRouteOptions: {
    gatewayMiddleware: AsyncExpressMiddleware;
    method: RouterMethod;
    middlewares: ExpressMiddleware[];
    route: string;
    router: Router;
}

The options for GatewayController._addRoute.

Type declaration

  • gatewayMiddleware: AsyncExpressMiddleware

    The middleware created by GatewayController, that makes the request.

  • method: RouterMethod

    The router method in which the middlewares will be added.

  • middlewares: ExpressMiddleware[]

    A list of extra middlewares to prepend to the gateway middleware.

  • route: string

    The route in which the middlewares will be added.

  • router: Router

    The reference for the router in which the middlewares will be added.

protected