2017-11-15 09:10:41 +00:00
|
|
|
import { Routes } from '@angular/router'
|
2020-06-23 12:10:17 +00:00
|
|
|
import { VideoRedundanciesListComponent } from '@app/+admin/follows/video-redundancies-list'
|
|
|
|
import { UserRightGuard } from '@app/core'
|
|
|
|
import { UserRight } from '@shared/models'
|
2017-11-15 09:10:41 +00:00
|
|
|
import { FollowersListComponent } from './followers-list'
|
|
|
|
import { FollowingListComponent } from './following-list/following-list.component'
|
2020-06-23 12:10:17 +00:00
|
|
|
import { FollowsComponent } from './follows.component'
|
2017-11-15 09:10:41 +00:00
|
|
|
|
|
|
|
export const FollowsRoutes: Routes = [
|
|
|
|
{
|
|
|
|
path: 'follows',
|
|
|
|
component: FollowsComponent,
|
|
|
|
canActivate: [ UserRightGuard ],
|
|
|
|
data: {
|
2017-11-16 16:16:42 +00:00
|
|
|
userRight: UserRight.MANAGE_SERVER_FOLLOW
|
2017-11-15 09:10:41 +00:00
|
|
|
},
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
redirectTo: 'following-list',
|
|
|
|
pathMatch: 'full'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'following-list',
|
|
|
|
component: FollowingListComponent,
|
|
|
|
data: {
|
|
|
|
meta: {
|
|
|
|
title: 'Following list'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'followers-list',
|
|
|
|
component: FollowersListComponent,
|
|
|
|
data: {
|
|
|
|
meta: {
|
|
|
|
title: 'Followers list'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'following-add',
|
2020-04-14 08:55:34 +00:00
|
|
|
redirectTo: 'following-list'
|
2020-01-10 09:11:28 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'video-redundancies-list',
|
|
|
|
component: VideoRedundanciesListComponent
|
2017-11-15 09:10:41 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|