15 lines
738 B
TypeScript
15 lines
738 B
TypeScript
import { Routes } from '@angular/router';
|
|
|
|
import { AuthComponent, CalculatorComponent, DashboardComponent, LogbookComponent, ProfileComponent } from 'src/app/components';
|
|
import { NoAuthGuard } from 'src/app/core/services';
|
|
|
|
export const FRONT_ROUTES: Routes = [
|
|
{ path: 'authenticate', component: AuthComponent, canActivate: [ NoAuthGuard ] },
|
|
{ path: 'calculator', component: CalculatorComponent },
|
|
{ path: 'dashboard', component: DashboardComponent},
|
|
{ path: 'logbook', component: LogbookComponent },
|
|
{ path: 'login', component: AuthComponent, canActivate: [ NoAuthGuard ] },
|
|
{ path: 'profile', component: ProfileComponent },
|
|
{ path: 'register', component: AuthComponent, canActivate: [ NoAuthGuard ] }
|
|
];
|