jimpex
    Preparing search index...

    Type Alias AddStaticRouteOptions

    The options for StaticsController._addRoute.

    protected

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

    Properties

    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.