Sets up the necessary providers for configuring server routes.
This function accepts an array of server routes and optional configuration
options, returning an EnvironmentProviders
object that encapsulates
the server routes and configuration settings.
API
function provideServerRouting( routes: ServerRoute[], ...features: ServerRoutesFeature<ServerRoutesFeatureKind>[]): EnvironmentProviders;
provideServerRouting
Sets up the necessary providers for configuring server routes.
This function accepts an array of server routes and optional configuration
options, returning an EnvironmentProviders
object that encapsulates
the server routes and configuration settings.
@paramfeatures
ServerRoutesFeature<ServerRoutesFeatureKind>[]
- (Optional) server routes features.
@returns
EnvironmentProviders
Jump to details