This repository has been archived on 2025-02-19. You can view files and clone it, but cannot push or open issues or pull requests.
casino/frontend/src/app/app.routes.ts
2025-02-13 09:42:42 +01:00

22 lines
581 B
TypeScript

import { Routes } from '@angular/router';
import { LandingPageComponent } from './landing-page/landing-page.component';
import { HomepageComponent } from './homepage/homepage/homepage.component';
import { authGuard } from './auth.guard';
import { DepositComponent } from './deposit/deposit.component';
export const routes: Routes = [
{
path: '',
component: LandingPageComponent,
},
{
path: 'home',
component: HomepageComponent,
canActivate: [authGuard],
},
{
path: 'deposit',
component: DepositComponent,
canActivate: [authGuard],
}
];