Skip to content

ui-router-server / hono / serverRouterHono

Function: serverRouterHono()

ts
function serverRouterHono(router, options): MiddlewareHandler;

Defined in: hono.ts:35

Wraps a ServerRouter as Hono middleware. The returned handler resolves the request to a verdict and either answers it (returning the verdict Response) or passes it on (await next()), exactly the fetch adapter's Response | null contract expressed in Hono's continuation.

Parameters

ParameterType
routerServerRouter
optionsFetchAdapterOptions

Returns

MiddlewareHandler