Fertig- next ist dashboard
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user