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'
10 export const FollowsRoutes: Routes = [
13 component: FollowsComponent,
14 canActivate: [ UserRightGuard ],
16 userRight: UserRight.MANAGE_SERVER_FOLLOW
21 redirectTo: 'following-list',
25 path: 'following-list',
26 component: FollowingListComponent,
29 title: 'Following list'
34 path: 'followers-list',
35 component: FollowersListComponent,
38 title: 'Followers list'
43 path: 'following-add',
44 component: FollowingAddComponent,