2024-09-17 06:50:34 +00:00
|
|
|
import { Routes } from '@angular/router';
|
|
|
|
|
import { DashboardComponent } from './pages/dashboard/dashboard.component';
|
|
|
|
|
import { LayoutsComponent } from './pages/dashboard/layouts/layouts.component';
|
2024-09-17 08:14:28 +00:00
|
|
|
import { AuthComponent } from './pages/auth/auth.component';
|
2024-10-17 07:00:59 +00:00
|
|
|
import { AuthGuard } from './cores/guards/auth.guard';
|
2024-10-16 10:13:13 +00:00
|
|
|
import { RegisterComponent } from './pages/register/register.component';
|
2024-11-05 22:42:46 +00:00
|
|
|
import { HistorygraphComponent } from './pages/dashboard/page/historygraph/historygraph.component';
|
2024-11-11 15:29:57 +00:00
|
|
|
import { ActualgraphComponent } from './pages/dashboard/page/actualgraph/actualgraph.component';
|
2024-09-17 06:50:34 +00:00
|
|
|
|
|
|
|
|
export const routes: Routes = [
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
2024-11-06 01:18:26 +00:00
|
|
|
component: AuthComponent,
|
|
|
|
|
|
2024-09-17 06:50:34 +00:00
|
|
|
},
|
2024-09-17 08:14:28 +00:00
|
|
|
{
|
2024-10-16 10:13:13 +00:00
|
|
|
path: 'auth',
|
2024-09-17 08:14:28 +00:00
|
|
|
component: AuthComponent
|
|
|
|
|
},
|
2024-09-17 06:50:34 +00:00
|
|
|
{
|
2024-10-16 10:13:13 +00:00
|
|
|
path: 'register',
|
|
|
|
|
component: RegisterComponent
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
2024-09-17 06:50:34 +00:00
|
|
|
component: LayoutsComponent,
|
2024-10-16 10:13:13 +00:00
|
|
|
children: [
|
2024-09-17 06:50:34 +00:00
|
|
|
{
|
|
|
|
|
path: 'dashboard',
|
|
|
|
|
component: DashboardComponent,
|
2024-11-06 01:18:26 +00:00
|
|
|
canActivate: [AuthGuard]
|
2024-10-16 10:13:13 +00:00
|
|
|
},
|
2024-11-05 22:42:46 +00:00
|
|
|
{
|
2024-11-06 01:18:26 +00:00
|
|
|
path: 'historygraph',
|
2024-11-05 22:42:46 +00:00
|
|
|
component: HistorygraphComponent,
|
2024-11-06 01:18:26 +00:00
|
|
|
canActivate: [AuthGuard]
|
2024-11-11 15:29:57 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'actualgraph',
|
|
|
|
|
component: ActualgraphComponent,
|
|
|
|
|
canActivate: [AuthGuard]
|
2024-11-05 22:42:46 +00:00
|
|
|
}
|
2024-09-17 06:50:34 +00:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
];
|