Beignet API reference
    Preparing search index...

    Type Alias RawRouteInit

    Identity and hook metadata for a raw route.

    Raw routes are mounted by the adapter at their own path, so method and path describe the route to hooks, instrumentation, and error mapping instead of driving routing. metadata feeds metadata-driven hooks exactly like contract metadata does, for example rateLimit and idempotency.

    type RawRouteInit = {
        metadata?: HttpContractConfig["metadata"];
        method: HttpContractConfig["method"];
        name: string;
        path: string;
    }
    Index
    name: string
    path: string