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