Alan Agius ec05c814ee fix(@angular/ssr): rename provideServerRoutesConfig to provideServerRouting
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))
```
2025-01-28 09:25:42 +01:00

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';