]>
Commit | Line | Data |
---|---|---|
51548b31 | 1 | import { Routes } from '@angular/router' |
67ed6552 C |
2 | import { VideoRedundanciesListComponent } from '@app/+admin/follows/video-redundancies-list' |
3 | import { UserRightGuard } from '@app/core' | |
4 | import { UserRight } from '@shared/models' | |
51548b31 | 5 | import { FollowersListComponent } from './followers-list' |
51548b31 C |
6 | import { FollowingListComponent } from './following-list/following-list.component' |
7 | ||
8 | export const FollowsRoutes: Routes = [ | |
9 | { | |
10 | path: 'follows', | |
51548b31 C |
11 | canActivate: [ UserRightGuard ], |
12 | data: { | |
4610bc5b | 13 | userRight: UserRight.MANAGE_SERVER_FOLLOW |
51548b31 C |
14 | }, |
15 | children: [ | |
16 | { | |
17 | path: '', | |
18 | redirectTo: 'following-list', | |
19 | pathMatch: 'full' | |
20 | }, | |
21 | { | |
22 | path: 'following-list', | |
23 | component: FollowingListComponent, | |
24 | data: { | |
25 | meta: { | |
4d029ef8 | 26 | title: $localize`Following` |
51548b31 C |
27 | } |
28 | } | |
29 | }, | |
30 | { | |
31 | path: 'followers-list', | |
32 | component: FollowersListComponent, | |
33 | data: { | |
34 | meta: { | |
4d029ef8 | 35 | title: $localize`Followers` |
51548b31 C |
36 | } |
37 | } | |
38 | }, | |
39 | { | |
40 | path: 'following-add', | |
bb152476 | 41 | redirectTo: 'following-list' |
b764380a C |
42 | }, |
43 | { | |
44 | path: 'video-redundancies-list', | |
45 | component: VideoRedundanciesListComponent | |
51548b31 C |
46 | } |
47 | ] | |
48 | } | |
49 | ] |