Skip to content

basalt / hono/src / registerRoutes

Function: registerRoutes() ​

> registerRoutes(app, routes, container?, enrichers?, guards?, onError?, getClientIp?, bodyLimit?): void

Defined in: hono/src/index.ts:419

Mounts Basalt routes on a Hono app (usable without the plugin).

Parameters ​

app ​

Hono<any>

routes ​

BasaltRoute[]

container? ​

Container

enrichers? ​

RequestEnricher[] = []

guards? ​

RouteGuard[] = []

onError? ​

HttpErrorReporter

getClientIp? ​

ClientIpResolver = defaultClientIp

bodyLimit? ​

number = DEFAULT_BODY_LIMIT

Returns ​

void

Released under the MIT License.