Add notifications in the client
[oweals/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 { MetaGuard } from '@ngx-meta/core'
4 import { VideoChannelsComponent } from './video-channels.component'
5 import { VideoChannelVideosComponent } from './video-channel-videos/video-channel-videos.component'
6 import { VideoChannelAboutComponent } from './video-channel-about/video-channel-about.component'
7
8 const videoChannelsRoutes: Routes = [
9   {
10     path: ':videoChannelName',
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 })
45 export class VideoChannelsRoutingModule {}