]>
Commit | Line | Data |
---|---|---|
1 | import { Routes } from '@angular/router' | |
2 | ||
3 | import { UserRightGuard } from '../../core' | |
4 | import { UserRight } from '../../../../../shared' | |
5 | import { VideoBlacklistComponent } from './video-blacklist.component' | |
6 | import { VideoBlacklistListComponent } from './video-blacklist-list' | |
7 | ||
8 | export const VideoBlacklistRoutes: Routes = [ | |
9 | { | |
10 | path: 'video-blacklist', | |
11 | component: VideoBlacklistComponent, | |
12 | canActivate: [ UserRightGuard ], | |
13 | data: { | |
14 | userRight: UserRight.MANAGE_VIDEO_BLACKLIST | |
15 | }, | |
16 | children: [ | |
17 | { | |
18 | path: '', | |
19 | redirectTo: 'list', | |
20 | pathMatch: 'full' | |
21 | }, | |
22 | { | |
23 | path: 'list', | |
24 | component: VideoBlacklistListComponent, | |
25 | data: { | |
26 | meta: { | |
27 | title: 'Blacklisted videos' | |
28 | } | |
29 | } | |
30 | } | |
31 | ] | |
32 | } | |
33 | ] |