]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/config/config.routes.ts
Improve remote runner config UX
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / config / config.routes.ts
CommitLineData
fd206f0b
C
1import { Routes } from '@angular/router'
2import { EditCustomConfigComponent } from '@app/+admin/config/edit-custom-config'
3import { UserRightGuard } from '@app/core'
67ed6552 4import { UserRight } from '@shared/models'
fd206f0b
C
5
6export const ConfigRoutes: Routes = [
7 {
8 path: 'config',
fd206f0b
C
9 canActivate: [ UserRightGuard ],
10 data: {
11 userRight: UserRight.MANAGE_CONFIGURATION
12 },
13 children: [
14 {
15 path: '',
16 redirectTo: 'edit-custom',
17 pathMatch: 'full'
18 },
19 {
20 path: 'edit-custom',
21 component: EditCustomConfigComponent,
22 data: {
23 meta: {
f29f487e 24 title: $localize`Edit custom configuration`
fd206f0b
C
25 }
26 }
27 }
28 ]
29 }
30]