Type Alias StaticsControllerOptions

StaticsControllerOptions: {
    files: (string | StaticsControllerFile)[];
    methods: Partial<Record<RouterMethod, boolean>>;
    paths: StaticsControllerPathsOptions;
}

The options to customize the controller.

Type declaration

  • files: (string | StaticsControllerFile)[]

    A list of filenames, or definitions for the files to handle.

  • methods: Partial<Record<RouterMethod, boolean>>

    A dictionary with the allowed router (HTTP) methods the controller can use to serve the files. If all is set to true, the rest of the values will be ignored.

    {get: true, all: false}
    
  • paths: StaticsControllerPathsOptions

    The "master paths" the controller can use to prefix the file paths and routes.

    {route: '', source: './',}