]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+video-channels/video-channels-routing.module.ts
Don't manage remote channels
[github/Chocobozzz/PeerTube.git] / client / src / app / +video-channels / video-channels-routing.module.ts
1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
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'
6
7 const videoChannelsRoutes: Routes = [
8 {
9 path: ':videoChannelName',
10 component: VideoChannelsComponent,
11 children: [
12 {
13 path: '',
14 redirectTo: 'videos',
15 pathMatch: 'full'
16 },
17 {
18 path: 'videos',
19 component: VideoChannelVideosComponent,
20 data: {
21 meta: {
22 title: $localize`Video channel videos`
23 },
24 reuse: {
25 enabled: true,
26 key: 'video-channel-videos-list'
27 }
28 }
29 },
30 {
31 path: 'video-playlists',
32 component: VideoChannelPlaylistsComponent,
33 data: {
34 meta: {
35 title: $localize`Video channel playlists`
36 }
37 }
38 }
39 ]
40 }
41 ]
42
43 @NgModule({
44 imports: [ RouterModule.forChild(videoChannelsRoutes) ],
45 exports: [ RouterModule ]
46 })
47 export class VideoChannelsRoutingModule {}