aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/overview/comments/video-comment.routes.ts
blob: f0bd440ad95992c75a57ca0dbb3a7514219a5012 (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
import { Routes } from '@angular/router'
import { UserRightGuard } from '@app/core'
import { UserRight } from '@shared/models'
import { VideoCommentListComponent } from './video-comment-list.component'

export const commentRoutes: Routes = [
  {
    path: 'comments',
    canActivate: [ UserRightGuard ],
    data: {
      userRight: UserRight.SEE_ALL_COMMENTS
    },
    children: [
      {
        path: '',
        redirectTo: 'list',
        pathMatch: 'full'
      },
      {
        path: 'list',
        component: VideoCommentListComponent,
        data: {
          meta: {
            title: $localize`Comments list`
          }
        }
      }
    ]
  }
]