]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/system/system.routes.ts
Fix admin layout
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / system / system.routes.ts
CommitLineData
2c22613c 1import { Routes } from '@angular/router'
67ed6552
C
2import { UserRightGuard } from '@app/core'
3import { UserRight } from '@shared/models'
4import { DebugComponent } from './debug'
5import { JobsComponent } from './jobs/jobs.component'
6import { LogsComponent } from './logs'
7import { SystemComponent } from './system.component'
2c22613c
C
8
9export const SystemRoutes: Routes = [
10 {
11 path: 'system',
12 component: SystemComponent,
13 data: {
14 },
15 children: [
16 {
17 path: '',
18 redirectTo: 'jobs',
19 pathMatch: 'full'
20 },
21 {
22 path: 'jobs',
23 canActivate: [ UserRightGuard ],
24 component: JobsComponent,
25 data: {
26 meta: {
27 userRight: UserRight.MANAGE_JOBS,
28 title: 'Jobs'
29 }
30 }
31 },
32 {
33 path: 'logs',
34 canActivate: [ UserRightGuard ],
35 component: LogsComponent,
36 data: {
37 meta: {
38 userRight: UserRight.MANAGE_LOGS,
39 title: 'Logs'
40 }
41 }
5d79474c
C
42 },
43 {
44 path: 'debug',
45 canActivate: [ UserRightGuard ],
46 component: DebugComponent,
47 data: {
48 meta: {
49 userRight: UserRight.MANAGE_DEBUG,
50 title: 'Debug'
51 }
52 }
2c22613c
C
53 }
54 ]
55 }
56]