jimpex
    Preparing search index...

    Type Alias StaticsControllerOptions

    The options to customize the controller.

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

    Properties

    Properties

    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}
    

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

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