Fertig- next ist dashboard

This commit is contained in:
Tizian.Breuch
2025-09-17 09:43:45 +02:00
parent 1bb9a408b8
commit 7e5939868b
26 changed files with 424 additions and 369 deletions

View File

@@ -9,14 +9,9 @@ export const routes: Routes = [
// wird sofort und ohne Umwege zur Login-Seite weitergeleitet.
{
path: '',
redirectTo: 'auth', // Leitet zur /auth-Route weiter
pathMatch: 'full', // Wichtig: Gilt nur für den exakt leeren Pfad
redirectTo: 'auth',
pathMatch: 'full',
},
// Regel 2: Authentifizierungs-Feature
// Alle URLs, die mit "auth/" beginnen (z.B. "/auth/login", "/auth/register"),
// werden von dieser Regel abgefangen und an die auth.routes.ts zur
// weiteren Verarbeitung übergeben.
{
path: 'auth',
loadChildren: () =>
@@ -27,14 +22,11 @@ export const routes: Routes = [
loadChildren: () =>
import('./features/demo/demo.routes').then((r) => r.DEMO_ROUTES),
},
{
path: 'access-denied',
component: AccessDeniedComponent,
title: 'Zugriff verweigert',
},
{
path: '**',
component: NotFoundComponent,