mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 18:43:42 +08:00
This commit renames `provideServerRoutesConfig` to `provideServerRouting` and updates the second parameter to use the `ServerRoutes` features. This change improves alignment with the framework's API conventions and the way features are integrated. ### Example Usage: Before: ```typescript provideServerRoutesConfig(serverRoutes, { appShellRoute: 'shell' }) ``` After: ```typescript provideServerRouting(serverRoutes, withAppShell(AppShellComponent)) ```
28 lines
725 B
TypeScript
28 lines
725 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.dev/license
|
|
*/
|
|
|
|
export * from './private_export';
|
|
|
|
export { AngularAppEngine } from './src/app-engine';
|
|
export { createRequestHandler, type RequestHandlerFunction } from './src/handler';
|
|
|
|
export {
|
|
PrerenderFallback,
|
|
type ServerRoute,
|
|
type ServerRoutesConfigOptions,
|
|
provideServerRoutesConfig,
|
|
provideServerRouting,
|
|
withAppShell,
|
|
RenderMode,
|
|
type ServerRouteClient,
|
|
type ServerRoutePrerender,
|
|
type ServerRoutePrerenderWithParams,
|
|
type ServerRouteServer,
|
|
type ServerRouteCommon,
|
|
} from './src/routes/route-config';
|