]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/config/config.routes.ts
add theming via css custom properties
[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'
4import { UserRight } from '../../../../../shared/models/users'
5import { ConfigComponent } from './config.component'
6
7export const ConfigRoutes: Routes = [
8 {
9 path: 'config',
10 component: ConfigComponent,
11 canActivate: [ UserRightGuard ],
12 data: {
13 userRight: UserRight.MANAGE_CONFIGURATION
14 },
15 children: [
16 {
17 path: '',
18 redirectTo: 'edit-custom',
19 pathMatch: 'full'
20 },
21 {
22 path: 'edit-custom',
23 component: EditCustomConfigComponent,
24 data: {
25 meta: {
1f30a185 26 title: 'Edit custom configuration'
fd206f0b
C
27 }
28 }
29 }
30 ]
31 }
32]