This repository has been archived on 2025-06-18. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
casino/frontend/src/app/app.routes.ts
csimonis 2f21408e3d
All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / Docker backend validation (pull_request) Successful in 13s
CI / eslint (pull_request) Successful in 36s
CI / oxlint (pull_request) Successful in 31s
CI / Docker frontend validation (pull_request) Successful in 53s
CI / Checkstyle Main (pull_request) Successful in 59s
CI / prettier (pull_request) Successful in 27s
CI / test-build (pull_request) Successful in 35s
style: format code for better readability
2025-05-15 11:03:50 +02:00

43 lines
1.2 KiB
TypeScript

import { Routes } from '@angular/router';
import { LandingComponent } from './feature/landing/landing.component';
import { authGuard } from './auth.guard';
export const routes: Routes = [
{
path: '',
component: LandingComponent,
},
{
path: 'home',
loadComponent: () => import('./feature/home/home.component'),
canActivate: [authGuard],
},
{
path: 'verify',
loadComponent: () =>
import('./feature/auth/verify-email/verify-email.component').then(
(m) => m.VerifyEmailComponent
),
},
{
path: 'game/blackjack',
loadComponent: () => import('./feature/game/blackjack/blackjack.component'),
canActivate: [authGuard],
},
{
path: 'game/slots',
loadComponent: () => import('./feature/game/slots/slots.component'),
canActivate: [authGuard],
},
{
path: 'game/lootboxes',
loadComponent: () =>
import('./feature/lootboxes/lootbox-selection/lootbox-selection.component'),
canActivate: [authGuard],
},
{
path: 'game/lootboxes/open/:id',
loadComponent: () => import('./feature/lootboxes/lootbox-opening/lootbox-opening.component'),
canActivate: [authGuard],
},
];