]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+admin/config/config.routes.ts
Reorganize client shared modules
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / config / config.routes.ts
1 import { Routes } from '@angular/router'
2 import { EditCustomConfigComponent } from '@app/+admin/config/edit-custom-config'
3 import { UserRightGuard } from '@app/core'
4 import { UserRight } from '@shared/models'
5 import { ConfigComponent } from './config.component'
6
7 export 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: {
26 title: 'Edit custom configuration'
27 }
28 }
29 }
30 ]
31 }
32 ]