@fermyon/spin-sdk
    Preparing search index...

    Interface routerType

    interface routerType {
        routes: RouteEntry[];
        all(path: string, ...handlers: SpinRouteHandler[]): RouterType;
        delete(path: string, ...handlers: SpinRouteHandler[]): RouterType;
        get(path: string, ...handlers: SpinRouteHandler[]): RouterType;
        handle(request: RequestLike, ...extras: any): Promise<any>;
        handleRequest(
            request: Request,
            response: ResponseBuilder,
            ...extras: any,
        ): Promise<any>;
        options(path: string, ...handlers: SpinRouteHandler[]): RouterType;
        patch(path: string, ...handlers: SpinRouteHandler[]): RouterType;
        post(path: string, ...handlers: SpinRouteHandler[]): RouterType;
        put(path: string, ...handlers: SpinRouteHandler[]): RouterType;
    }
    Index

    Properties

    routes: RouteEntry[]

    Methods

    • Parameters

      Returns Promise<any>

    post