]>
Commit | Line | Data |
---|---|---|
170726f5 C |
1 | import { NgModule } from '@angular/core' |
2 | import { RouterModule, Routes } from '@angular/router' | |
67ed6552 C |
3 | import { VideoChannelPlaylistsComponent } from './video-channel-playlists/video-channel-playlists.component' |
4 | import { VideoChannelVideosComponent } from './video-channel-videos/video-channel-videos.component' | |
5 | import { VideoChannelsComponent } from './video-channels.component' | |
170726f5 C |
6 | |
7 | const videoChannelsRoutes: Routes = [ | |
8 | { | |
2f1548fd | 9 | path: ':videoChannelName', |
170726f5 | 10 | component: VideoChannelsComponent, |
170726f5 C |
11 | children: [ |
12 | { | |
13 | path: '', | |
14 | redirectTo: 'videos', | |
15 | pathMatch: 'full' | |
16 | }, | |
17 | { | |
18 | path: 'videos', | |
19 | component: VideoChannelVideosComponent, | |
20 | data: { | |
21 | meta: { | |
f29f487e | 22 | title: $localize`Video channel videos` |
489290b8 C |
23 | }, |
24 | reuse: { | |
25 | enabled: true, | |
26 | key: 'video-channel-videos-list' | |
170726f5 C |
27 | } |
28 | } | |
29 | }, | |
bce47964 C |
30 | { |
31 | path: 'video-playlists', | |
32 | component: VideoChannelPlaylistsComponent, | |
33 | data: { | |
34 | meta: { | |
f29f487e | 35 | title: $localize`Video channel playlists` |
bce47964 C |
36 | } |
37 | } | |
170726f5 C |
38 | } |
39 | ] | |
40 | } | |
41 | ] | |
42 | ||
43 | @NgModule({ | |
44 | imports: [ RouterModule.forChild(videoChannelsRoutes) ], | |
45 | exports: [ RouterModule ] | |
46 | }) | |
47 | export class VideoChannelsRoutingModule {} |