Stratal API Reference
    Preparing search index...

    Interface RouteInfo

    Route information for middleware targeting

    interface RouteInfo {
        method?: HttpMethod | HttpMethod[];
        path: string;
    }
    Index

    Properties

    Properties

    method?: HttpMethod | HttpMethod[]

    HTTP method(s) to match. If omitted, matches all methods

    path: string

    Route path pattern (e.g., '/api/v1/users', '/health')