]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/follows/follows.routes.ts
preserve original variable names server-side
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / follows / follows.routes.ts
CommitLineData
51548b31
C
1import { Routes } from '@angular/router'
2
3import { UserRightGuard } from '../../core'
4import { FollowsComponent } from './follows.component'
51548b31
C
5import { FollowersListComponent } from './followers-list'
6import { UserRight } from '../../../../../shared'
7import { FollowingListComponent } from './following-list/following-list.component'
b764380a 8import { VideoRedundanciesListComponent } from '@app/+admin/follows/video-redundancies-list'
51548b31
C
9
10export const FollowsRoutes: Routes = [
11 {
12 path: 'follows',
13 component: FollowsComponent,
14 canActivate: [ UserRightGuard ],
15 data: {
4610bc5b 16 userRight: UserRight.MANAGE_SERVER_FOLLOW
51548b31
C
17 },
18 children: [
19 {
20 path: '',
21 redirectTo: 'following-list',
22 pathMatch: 'full'
23 },
24 {
25 path: 'following-list',
26 component: FollowingListComponent,
27 data: {
28 meta: {
29 title: 'Following list'
30 }
31 }
32 },
33 {
34 path: 'followers-list',
35 component: FollowersListComponent,
36 data: {
37 meta: {
38 title: 'Followers list'
39 }
40 }
41 },
42 {
43 path: 'following-add',
bb152476 44 redirectTo: 'following-list'
b764380a
C
45 },
46 {
47 path: 'video-redundancies-list',
48 component: VideoRedundanciesListComponent
51548b31
C
49 }
50 ]
51 }
52]