This commit is contained in:
Tizian.Breuch
2025-08-13 23:06:27 +02:00
parent b33e800c10
commit 2da416ca1f
17 changed files with 365 additions and 340 deletions

View File

@@ -1,3 +1,29 @@
// src/app/app.routes.ts
import { Routes } from '@angular/router';
import { LandingpageComponent } from './features/landingpage/landingpage.component';
import { NotFoundComponent } from './core/components/not-found/not-found.component';
export const routes: Routes = [];
export const routes: Routes = [
// REGEL 1: Für alle "normalen" Seiten, nutze das MainLayout
{
path: '',
children: [
{ path: '', component: LandingpageComponent }, // ... zeige das Landing-Bild darin
// { path: 'shop', loadChildren: ... }, // ... zeige das Shop-Bild darin
// { path: 'cart', loadChildren: ... } // ... zeige das Warenkorb-Bild darin
],
},
// // REGEL 2: Für alle Authentifizierungs-Seiten, nutze das AuthLayout
// {
// path: 'auth',
// component: AuthLayoutComponent, // <- Hänge den "Auth"-Rahmen an die Wand
// children: [
// // Annahme: auth.routes.ts definiert /login, /register etc.
// { path: '', loadChildren: () => import('./features/auth/auth.routes').then(r => r.AUTH_ROUTES) }
// ]
// },
// REGEL 3: Die 404-Seite hat kein spezielles Layout
{ path: '**', component: NotFoundComponent },
];