This repository has been archived on 2025-02-19. 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

19 lines
491 B
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: 'login/success',
loadComponent: () => import('./feature/login-success/login-success.component'),
},
{
path: 'home',
loadComponent: () => import('./feature/home/home.component'),
canActivate: [authGuard],
},
];