import { LayoutComponent } from '../layout/layout.component';
|
import { LayoutFullScreenComponent } from '../layout/fullscreen/fullscreen.component';
|
import { DashboardV1Component } from './dashboard/v1/v1.component';
|
import { DashboardAnalysisComponent } from './dashboard/analysis/analysis.component';
|
import { DashboardMonitorComponent } from './dashboard/monitor/monitor.component';
|
import { DashboardWorkplaceComponent } from './dashboard/workplace/workplace.component';
|
|
export const routes = [
|
{
|
path: '',
|
component: LayoutComponent,
|
children: [
|
{ path: '', redirectTo: 'dashboard/v1', pathMatch: 'full' },
|
{ path: 'dashboard', redirectTo: 'dashboard/v1', pathMatch: 'full' },
|
|
|
{ path: 'users', loadChildren: './users/users.module#UsersModule' },
|
{ path: 'devices', loadChildren: './devices/devices.module#DevicesModule' },
|
{ path: 'sensors', loadChildren: './sensors/sensors.module#SensorsModule' },
|
|
{ path: 'dashboard/v1', component: DashboardV1Component, data: { translate: 'dashboard_v1' } },
|
{ path: 'dashboard/analysis', component: DashboardAnalysisComponent, data: { translate: 'dashboard_analysis' } },
|
{ path: 'dashboard/monitor', component: DashboardMonitorComponent, data: { translate: 'dashboard_monitor' } },
|
{ path: 'dashboard/workplace', component: DashboardWorkplaceComponent, data: { translate: 'dashboard_workplace' } }
|
]
|
},
|
{ path: '**', redirectTo: 'dashboard' }
|
];
|