]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/video-abuses/video-abuses.routes.ts
Proxify local storage and handle if it is unavailable
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / video-abuses / video-abuses.routes.ts
CommitLineData
df98563e 1import { Routes } from '@angular/router'
11ac88de 2
954605a8
C
3import { UserRightGuard } from '../../core'
4import { UserRight } from '../../../../../shared'
df98563e
C
5import { VideoAbusesComponent } from './video-abuses.component'
6import { VideoAbuseListComponent } from './video-abuse-list'
11ac88de
C
7
8export const VideoAbusesRoutes: Routes = [
9 {
1f0215a9 10 path: 'video-abuses',
954605a8
C
11 component: VideoAbusesComponent,
12 canActivate: [ UserRightGuard ],
13 data: {
14 userRight: UserRight.MANAGE_VIDEO_ABUSES
15 },
1f0215a9
C
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'
11ac88de
C
28 }
29 }
1f0215a9
C
30 }
31 ]
32 }
df98563e 33]