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'
8 export const FollowsRoutes: Routes = [
11 canActivate: [ UserRightGuard ],
13 userRight: UserRight.MANAGE_SERVER_FOLLOW
18 redirectTo: 'following-list',
22 path: 'following-list',
23 component: FollowingListComponent,
26 title: $localize`Following`
31 path: 'followers-list',
32 component: FollowersListComponent,
35 title: $localize`Followers`
40 path: 'following-add',
41 redirectTo: 'following-list'
44 path: 'video-redundancies-list',
45 component: VideoRedundanciesListComponent