1 import { Routes } from '@angular/router'
2 import { UserRight } from '../../../../../shared'
3 import { UserRightGuard } from '@app/core'
4 import { VideoAbuseListComponent } from '@app/+admin/moderation/video-abuse-list'
5 import { VideoBlacklistListComponent } from '@app/+admin/moderation/video-blacklist-list'
6 import { ModerationComponent } from '@app/+admin/moderation/moderation.component'
8 export const ModerationRoutes: Routes = [
11 component: ModerationComponent,
15 redirectTo: 'video-abuses/list',
20 redirectTo: 'video-abuses/list',
24 path: 'video-blacklist',
25 redirectTo: 'video-blacklist/list',
29 path: 'video-abuses/list',
30 component: VideoAbuseListComponent,
31 canActivate: [ UserRightGuard ],
33 userRight: UserRight.MANAGE_VIDEO_ABUSES,
35 title: 'Video abuses list'
40 path: 'video-blacklist/list',
41 component: VideoBlacklistListComponent,
42 canActivate: [ UserRightGuard ],
44 userRight: UserRight.MANAGE_VIDEO_BLACKLIST,
46 title: 'Blacklisted videos'