@oona/vlo / host / createRouter
Function: createRouter()
createRouter(
ctx):FetchHandler
Defined in: sdk/ts/sdk/src/host/api/router.ts:50
Builds the /v1 router for a context. Every VloError becomes a JSON error response with its status; anything else is a 500. Routes a role is not held for answer 404 role_not_served. createHost calls this; only custom hosts need it directly.