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',
19 path: 'video-abuses/list',
20 component: VideoAbuseListComponent,
21 canActivate: [ UserRightGuard ],
23 userRight: UserRight.MANAGE_VIDEO_ABUSES,
25 title: 'Video abuses list'
30 path: 'video-blacklist/list',
31 component: VideoBlacklistListComponent,
32 canActivate: [ UserRightGuard ],
34 userRight: UserRight.MANAGE_VIDEO_BLACKLIST,
36 title: 'Blacklisted videos'