This repository has been archived on 2025-02-19. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
casino/frontend/src/app/app.routes.ts
2025-02-13 12:12:05 +01:00

16 lines
398 B
TypeScript

import { Routes } from '@angular/router';
import { LandingComponent } from './feature/landing/landing.component';
import { HomeComponent } from './feature/home/home.component';
import { authGuard } from './auth.guard';
export const routes: Routes = [
{
path: '',
component: LandingComponent,
},
{
path: 'home',
component: HomeComponent,
canActivate: [authGuard],
},
];