Skip to content

basalt / fastify/src / registerRoutes

Function: registerRoutes() ​

> registerRoutes(instance, routes, container?, enrichers?, guards?, onError?): void

Defined in: fastify/src/adapter.ts:229

Registers Basalt routes on a Fastify instance (also usable without the plugin).

Parameters ​

instance ​

FastifyInstance

routes ​

BasaltRoute[]

container? ​

Container

enrichers? ​

RequestEnricher[] = []

guards? ​

RouteGuard[] = []

onError? ​

HttpErrorReporter

Returns ​

void

Released under the MIT License.