]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/system/system.routes.ts
Add ability for client to create server logs
[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'
2c22613c
C
7
8export const SystemRoutes: Routes = [
9 {
10 path: 'system',
2c22613c
C
11 children: [
12 {
13 path: '',
14 redirectTo: 'jobs',
15 pathMatch: 'full'
16 },
17 {
18 path: 'jobs',
19 canActivate: [ UserRightGuard ],
20 component: JobsComponent,
21 data: {
22 meta: {
23 userRight: UserRight.MANAGE_JOBS,
f29f487e 24 title: $localize`Jobs`
2c22613c
C
25 }
26 }
27 },
28 {
29 path: 'logs',
30 canActivate: [ UserRightGuard ],
31 component: LogsComponent,
32 data: {
33 meta: {
34 userRight: UserRight.MANAGE_LOGS,
f29f487e 35 title: $localize`Logs`
2c22613c
C
36 }
37 }
5d79474c
C
38 },
39 {
40 path: 'debug',
41 canActivate: [ UserRightGuard ],
42 component: DebugComponent,
43 data: {
44 meta: {
45 userRight: UserRight.MANAGE_DEBUG,
f29f487e 46 title: $localize`Debug`
5d79474c
C
47 }
48 }
2c22613c
C
49 }
50 ]
51 }
52]