1 import { Routes } from '@angular/router'
2 import { UserRightGuard } from '@app/core'
3 import { UserRight } from '@shared/models'
4 import { DebugComponent } from './debug'
5 import { JobsComponent } from './jobs/jobs.component'
6 import { LogsComponent } from './logs'
7 import { SystemComponent } from './system.component'
9 export const SystemRoutes: Routes = [
12 component: SystemComponent,
23 canActivate: [ UserRightGuard ],
24 component: JobsComponent,
27 userRight: UserRight.MANAGE_JOBS,
34 canActivate: [ UserRightGuard ],
35 component: LogsComponent,
38 userRight: UserRight.MANAGE_LOGS,
45 canActivate: [ UserRightGuard ],
46 component: DebugComponent,
49 userRight: UserRight.MANAGE_DEBUG,