fix route error
This commit is contained in:
28
.gitignore
vendored
Normal file
28
.gitignore
vendored
Normal 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
|
||||||
|
*~
|
||||||
@@ -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)
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user