]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+video-channels/video-channels-routing.module.ts
Merge branch 'release/4.0.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / +video-channels / video-channels-routing.module.ts
CommitLineData
170726f5
C
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
67ed6552
C
3import { VideoChannelPlaylistsComponent } from './video-channel-playlists/video-channel-playlists.component'
4import { VideoChannelVideosComponent } from './video-channel-videos/video-channel-videos.component'
5import { VideoChannelsComponent } from './video-channels.component'
170726f5
C
6
7const 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})
47export class VideoChannelsRoutingModule {}