init
This commit is contained in:
@@ -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 },
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user