1 import { Routes } from '@angular/router'
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'
11 export const FollowsRoutes: Routes = [
14 component: FollowsComponent,
15 canActivate: [ UserRightGuard ],
17 userRight: UserRight.MANAGE_SERVER_FOLLOW
22 redirectTo: 'following-list',
26 path: 'following-list',
27 component: FollowingListComponent,
30 title: 'Following list'
35 path: 'followers-list',
36 component: FollowersListComponent,
39 title: 'Followers list'
44 path: 'following-add',
45 component: FollowingAddComponent,
53 path: 'video-redundancies-list',
54 component: VideoRedundanciesListComponent