fix route error

This commit is contained in:
AD2025
2025-11-13 23:24:44 +02:00
parent 41565aec12
commit 501de0103f
3 changed files with 36 additions and 1 deletions

28
.gitignore vendored Normal file
View File

@@ -0,0 +1,28 @@
# Node modules
node_modules/
# Environment files
.env
.env.local
.env.*.local
# Logs
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Coverage
coverage/
# OS files
.DS_Store
Thumbs.db
# IDE
.vscode/
.idea/
*.swp
*.swo
*~

View File

@@ -16,6 +16,13 @@ export const routes: Routes = [
title: 'Register - Quiz Platform' title: 'Register - Quiz Platform'
}, },
// Guest routes
{
path: 'guest-welcome',
loadComponent: () => import('./shared/components/guest-welcome/guest-welcome').then(m => m.GuestWelcomeComponent),
title: 'Welcome - Quiz Platform'
},
// TODO: Add more routes as components are created // TODO: Add more routes as components are created
// - Home page (public) // - Home page (public)
// - Dashboard (protected with authGuard) // - Dashboard (protected with authGuard)

View File

@@ -142,7 +142,7 @@ export class LoginComponent {
this.guestService.startSession().subscribe({ this.guestService.startSession().subscribe({
next: () => { next: () => {
this.isStartingGuestSession.set(false); this.isStartingGuestSession.set(false);
this.router.navigate(['/categories']); this.router.navigate(['/guest-welcome']);
}, },
error: () => { error: () => {
this.isStartingGuestSession.set(false); this.isStartingGuestSession.set(false);