PeerTube/client/src/app/+admin/video-blacklist/video-blacklist.routes.ts

34 lines
800 B
TypeScript
Raw Normal View History

2017-10-10 03:02:18 -05:00
import { Routes } from '@angular/router'
import { UserRightGuard } from '../../core'
import { UserRight } from '../../../../../shared'
2017-10-10 03:02:18 -05:00
import { VideoBlacklistComponent } from './video-blacklist.component'
import { VideoBlacklistListComponent } from './video-blacklist-list'
export const VideoBlacklistRoutes: Routes = [
{
path: 'video-blacklist',
component: VideoBlacklistComponent,
canActivate: [ UserRightGuard ],
data: {
userRight: UserRight.MANAGE_VIDEO_BLACKLIST
},
2017-10-10 03:02:18 -05:00
children: [
{
path: '',
redirectTo: 'list',
pathMatch: 'full'
},
{
path: 'list',
component: VideoBlacklistListComponent,
data: {
meta: {
title: 'Blacklisted videos'
}
}
}
]
}
]