@resistdesign/voltra
    Preparing search index...

    Type Alias Route

    Route: { authConfig?: RouteAuthConfig; path: string } & (
        | { handler?: never; handlerFactory: RouteHandlerFactory }
        | { handler: RouteHandler; handlerFactory?: never }
    )

    A configuration used to define how an RPC request to a specific path is handled.

    Type Declaration

    • OptionalauthConfig?: RouteAuthConfig

      Optional auth requirements for the route.

    • path: string

      Route path segment used as the lookup key in a RouteMap.

    • { handler?: never; handlerFactory: RouteHandlerFactory }
      • Optionalhandler?: never
      • handlerFactory: RouteHandlerFactory

        Factory for building a handler with injected context.

    • { handler: RouteHandler; handlerFactory?: never }
      • handler: RouteHandler

        Direct handler invoked with the normalized body payload.

      • OptionalhandlerFactory?: never