1 import { Routes } from '@angular/router'
2 import { VideoRedundanciesListComponent } from '@app/+admin/follows/video-redundancies-list'
3 import { UserRightGuard } from '@app/core'
4 import { UserRight } from '@shared/models'
5 import { FollowersListComponent } from './followers-list'
6 import { FollowingListComponent } from './following-list/following-list.component'
7 import { FollowsComponent } from './follows.component'
9 export const FollowsRoutes: Routes = [
12 component: FollowsComponent,
13 canActivate: [ UserRightGuard ],
15 userRight: UserRight.MANAGE_SERVER_FOLLOW
20 redirectTo: 'following-list',
24 path: 'following-list',
25 component: FollowingListComponent,
28 title: $localize`Following list`
33 path: 'followers-list',
34 component: FollowersListComponent,
37 title: $localize`Followers list`
42 path: 'following-add',
43 redirectTo: 'following-list'
46 path: 'video-redundancies-list',
47 component: VideoRedundanciesListComponent