]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+admin/follows/follows.routes.ts
Merge branch 'release/2.1.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / follows / follows.routes.ts
1 import { Routes } from '@angular/router'
2
3 import { UserRightGuard } from '../../core'
4 import { FollowsComponent } from './follows.component'
5 import { FollowingAddComponent } from './following-add'
6 import { FollowersListComponent } from './followers-list'
7 import { UserRight } from '../../../../../shared'
8 import { FollowingListComponent } from './following-list/following-list.component'
9 import { VideoRedundanciesListComponent } from '@app/+admin/follows/video-redundancies-list'
10
11 export const FollowsRoutes: Routes = [
12 {
13 path: 'follows',
14 component: FollowsComponent,
15 canActivate: [ UserRightGuard ],
16 data: {
17 userRight: UserRight.MANAGE_SERVER_FOLLOW
18 },
19 children: [
20 {
21 path: '',
22 redirectTo: 'following-list',
23 pathMatch: 'full'
24 },
25 {
26 path: 'following-list',
27 component: FollowingListComponent,
28 data: {
29 meta: {
30 title: 'Following list'
31 }
32 }
33 },
34 {
35 path: 'followers-list',
36 component: FollowersListComponent,
37 data: {
38 meta: {
39 title: 'Followers list'
40 }
41 }
42 },
43 {
44 path: 'following-add',
45 component: FollowingAddComponent,
46 data: {
47 meta: {
48 title: 'Add follow'
49 }
50 }
51 },
52 {
53 path: 'video-redundancies-list',
54 component: VideoRedundanciesListComponent
55 }
56 ]
57 }
58 ]