Allow more customization on route handler
Breaking
Removing the option routeHandlerDomain
in favor of routeHandlerModifier
.
Features
You can now use the routeHandlerModifier
option in the config file to pass a callback that will be executed for each routes created by Transmit's provider.
For example, if you would like your route to be registered on the example.com
domain you can do the following:
defineConfig({
transport: null,
routeHandlerModifier: (route) => route.domain('example.com'),
}),
Commits
- refactor(provider): allow more customization (c41c3ee)
Full Changelog: v0.5.2...v0.6.0