Skip to content

Allow more customization on route handler

Compare
Choose a tag to compare
@RomainLanz RomainLanz released this 10 Apr 16:39
· 7 commits to main since this release

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