node-webserver
    Preparing search index...

    Interface Route<Path>

    interface Route<Path extends string> {
        handler: RouteHandler<Path, any>;
        isCatchAll: boolean;
        method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS";
        middlewares: Middleware<Path, Locals>[];
        paramNames: readonly string[];
        path: Path;
        priority: number;
        regex: RegExp;
    }

    Type Parameters

    • Path extends string
    Index

    Properties

    handler: RouteHandler<Path, any>
    isCatchAll: boolean
    method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS"
    middlewares: Middleware<Path, Locals>[]
    paramNames: readonly string[]
    path: Path
    priority: number
    regex: RegExp