Sarraf API
    Preparing search index...

    Interface MockRoute

    interface MockRoute {
        method?: string;
        respond:
            | MockResponse
            | ((req: MockRequest) => MockResponse | Promise<MockResponse>);
        times?: number;
        url: string | RegExp;
    }
    Index
    method?: string
    respond:
        | MockResponse
        | ((req: MockRequest) => MockResponse | Promise<MockResponse>)
    times?: number

    Respond only this many times, then fall through to the next matching route.

    url: string | RegExp

    Matches the full URL (string = exact path match on pathname, RegExp = tested on the full href).