( config: ResolvedConfig, registry: VendorRegistry, )
| 93 | |
| 94 | /** Bind config + registry into a simple route(method, ...args) function. */ |
| 95 | export function createRouter( |
| 96 | config: ResolvedConfig, |
| 97 | registry: VendorRegistry, |
| 98 | ): RouteFn { |
| 99 | return (method: DataMethod, ...args: unknown[]) => |
| 100 | routeToVendor(method, { args }, config, registry); |
| 101 | } |
no test coverage detected