]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+admin/video-abuses/video-abuses.routes.ts
More secure target blank links
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / video-abuses / video-abuses.routes.ts
1 import { Routes } from '@angular/router'
2
3 import { UserRightGuard } from '../../core'
4 import { UserRight } from '../../../../../shared'
5 import { VideoAbusesComponent } from './video-abuses.component'
6 import { VideoAbuseListComponent } from './video-abuse-list'
7
8 export const VideoAbusesRoutes: Routes = [
9 {
10 path: 'video-abuses',
11 component: VideoAbusesComponent,
12 canActivate: [ UserRightGuard ],
13 data: {
14 userRight: UserRight.MANAGE_VIDEO_ABUSES
15 },
16 children: [
17 {
18 path: '',
19 redirectTo: 'list',
20 pathMatch: 'full'
21 },
22 {
23 path: 'list',
24 component: VideoAbuseListComponent,
25 data: {
26 meta: {
27 title: 'Video abuses list'
28 }
29 }
30 }
31 ]
32 }
33 ]