Add channel avatar to overviews
[oweals/peertube.git] / client / src / app / +about / about-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 { AboutComponent } from './about.component'
5 import { AboutInstanceComponent } from '@app/+about/about-instance/about-instance.component'
6 import { AboutPeertubeComponent } from '@app/+about/about-peertube/about-peertube.component'
7
8 const aboutRoutes: Routes = [
9   {
10     path: '',
11     component: AboutComponent,
12     canActivateChild: [ MetaGuard ],
13     children: [
14       {
15         path: '',
16         redirectTo: 'instance',
17         pathMatch: 'full'
18       },
19       {
20         path: 'instance',
21         component: AboutInstanceComponent,
22         data: {
23           meta: {
24             title: 'About this instance'
25           }
26         }
27       },
28       {
29         path: 'peertube',
30         component: AboutPeertubeComponent,
31         data: {
32           meta: {
33             title: 'About PeerTube'
34           }
35         }
36       }
37     ]
38   }
39 ]
40
41 @NgModule({
42   imports: [ RouterModule.forChild(aboutRoutes) ],
43   exports: [ RouterModule ]
44 })
45 export class AboutRoutingModule {}