All checks were successful
CI / Get Changed Files (pull_request) Successful in 8s
CI / oxlint (pull_request) Successful in 27s
CI / eslint (pull_request) Successful in 30s
CI / Docker backend validation (pull_request) Successful in 34s
CI / prettier (pull_request) Successful in 38s
CI / Checkstyle Main (pull_request) Successful in 1m1s
CI / Docker frontend validation (pull_request) Successful in 1m2s
CI / test-build (pull_request) Successful in 1m1s
88 lines
2.4 KiB
TypeScript
88 lines
2.4 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: 'recover-password',
|
|
loadComponent: () =>
|
|
import('./feature/auth/recover-password/recover-password.component').then(
|
|
(m) => m.RecoverPasswordComponent
|
|
),
|
|
},
|
|
{
|
|
path: 'reset-password',
|
|
loadComponent: () =>
|
|
import('./feature/auth/recover-password/recover-password.component').then(
|
|
(m) => m.RecoverPasswordComponent
|
|
),
|
|
},
|
|
{
|
|
path: 'oauth2/callback',
|
|
children: [
|
|
{
|
|
path: 'github',
|
|
loadComponent: () =>
|
|
import('./feature/auth/oauth2/oauth2-callback.component').then(
|
|
(m) => m.OAuth2CallbackComponent
|
|
),
|
|
data: { provider: 'github' },
|
|
},
|
|
{
|
|
path: 'google',
|
|
loadComponent: () =>
|
|
import('./feature/auth/oauth2/oauth2-callback.component').then(
|
|
(m) => m.OAuth2CallbackComponent
|
|
),
|
|
data: { provider: 'google' },
|
|
},
|
|
],
|
|
},
|
|
{
|
|
path: 'game/blackjack',
|
|
loadComponent: () => import('./feature/game/blackjack/blackjack.component'),
|
|
canActivate: [authGuard],
|
|
},
|
|
{
|
|
path: 'game/coinflip',
|
|
loadComponent: () => import('./feature/game/coinflip/coinflip.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],
|
|
},
|
|
{
|
|
path: 'game/dice',
|
|
loadComponent: () => import('./feature/game/dice/dice.component').then((m) => m.DiceComponent),
|
|
canActivate: [authGuard],
|
|
},
|
|
];
|