aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/video-abuses/video-abuses.routes.ts
blob: 68b75605946c66b3dd76133d435ecee7b372f867 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { Routes } from '@angular/router'

import { UserRightGuard } from '../../core'
import { UserRight } from '../../../../../shared'
import { VideoAbusesComponent } from './video-abuses.component'
import { VideoAbuseListComponent } from './video-abuse-list'

export const VideoAbusesRoutes: Routes = [
  {
    path: 'video-abuses',
    component: VideoAbusesComponent,
    canActivate: [ UserRightGuard ],
    data: {
      userRight: UserRight.MANAGE_VIDEO_ABUSES
    },
    children: [
      {
        path: '',
        redirectTo: 'list',
        pathMatch: 'full'
      },
      {
        path: 'list',
        component: VideoAbuseListComponent,
        data: {
          meta: {
            title: 'Video abuses list'
          }
        }
      }
    ]
  }
]