jimpex
    Preparing search index...

    Type Alias VersionValidatorLatestOptions

    The options for how the middleware should behave if the requested version is latest.

    type VersionValidatorLatestOptions = {
        allow: boolean;
        name: string;
    }
    Index

    Properties

    Properties

    allow: boolean

    Whether or not the middleware should validate the "latest version".

    true
    
    name: string

    The name of the "latest version". Basically, req.params.version must match with this property in order to be consider "latest".

    'latest'