Type Alias AddStaticRouteOptions

AddStaticRouteOptions: {
    file: StaticsControllerFile;
    fileMiddleware: ExpressMiddleware;
    method: RouterMethod;
    middlewares: ExpressMiddleware[];
    router: Router;
}

The options for StaticsController._addRoute.

Type declaration

  • file: StaticsControllerFile

    The definition of the file to serve.

  • fileMiddleware: ExpressMiddleware

    The middleware created by StaticsController, that will serve the file.

  • method: RouterMethod

    The router method in which the middlewares will be added.

  • middlewares: ExpressMiddleware[]

    A list of extra middlewares to execute before the file middleware.

  • router: Router

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

protected