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';
|
|
|
|
|
import { GraphComponent } from './pages/dashboard/page/graph/graph.component';
|
2024-09-17 08:14:28 +00:00
|
|
|
import { AuthComponent } from './pages/auth/auth.component';
|
2024-09-17 06:50:34 +00:00
|
|
|
|
|
|
|
|
export const routes: Routes = [
|
|
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
redirectTo:'dashboard',
|
|
|
|
|
pathMatch:'full'
|
|
|
|
|
},
|
2024-09-17 08:14:28 +00:00
|
|
|
{
|
|
|
|
|
path: 'auth',
|
|
|
|
|
component: AuthComponent
|
|
|
|
|
},
|
2024-09-17 06:50:34 +00:00
|
|
|
{
|
|
|
|
|
path: '',
|
|
|
|
|
component: LayoutsComponent,
|
|
|
|
|
children:[
|
|
|
|
|
{
|
|
|
|
|
path: 'dashboard',
|
|
|
|
|
component: DashboardComponent,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: 'graph',
|
|
|
|
|
component: GraphComponent
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
];
|