Teleforge API Reference - v0.1.0
    Preparing search index...

    Interface BffRouter

    interface BffRouter {
        add<TInput, TOutput>(
            route:
                | BffRouteConfig<TInput, TOutput>
                | BffRouteDefinition<TInput, TOutput>,
        ): BffRouteDefinition<TInput, TOutput>;
        createHandler(): (request: Request) => Promise<Response>;
        getAll(): BffRouteDefinition<unknown, unknown>[];
        mountBuiltIns(): void;
    }
    Index

    Methods

    • Returns (request: Request) => Promise<Response>

    • Returns void