]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+video-channels/video-channels-routing.module.ts
Add video channel view
[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'
3import { MetaGuard } from '@ngx-meta/core'
4import { VideoChannelsComponent } from './video-channels.component'
5import { VideoChannelVideosComponent } from './video-channel-videos/video-channel-videos.component'
6import { VideoChannelAboutComponent } from './video-channel-about/video-channel-about.component'
bce47964 7import { VideoChannelPlaylistsComponent } from '@app/+video-channels/video-channel-playlists/video-channel-playlists.component'
170726f5
C
8
9const videoChannelsRoutes: Routes = [
10 {
2f1548fd 11 path: ':videoChannelName',
170726f5
C
12 component: VideoChannelsComponent,
13 canActivateChild: [ MetaGuard ],
14 children: [
15 {
16 path: '',
17 redirectTo: 'videos',
18 pathMatch: 'full'
19 },
20 {
21 path: 'videos',
22 component: VideoChannelVideosComponent,
23 data: {
24 meta: {
25 title: 'Video channel videos'
26 }
27 }
28 },
bce47964
C
29 {
30 path: 'video-playlists',
31 component: VideoChannelPlaylistsComponent,
32 data: {
33 meta: {
34 title: 'Video channel playlists'
35 }
36 }
37 },
170726f5
C
38 {
39 path: 'about',
40 component: VideoChannelAboutComponent,
41 data: {
42 meta: {
43 title: 'About video channel'
44 }
45 }
46 }
47 ]
48 }
49]
50
51@NgModule({
52 imports: [ RouterModule.forChild(videoChannelsRoutes) ],
53 exports: [ RouterModule ]
54})
55export class VideoChannelsRoutingModule {}