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'
8 const aboutRoutes: Routes = [
11 component: AboutComponent,
12 canActivateChild: [ MetaGuard ],
16 redirectTo: 'instance',
21 component: AboutInstanceComponent,
24 title: 'About this instance'
30 component: AboutPeertubeComponent,
33 title: 'About PeerTube'
42 imports: [ RouterModule.forChild(aboutRoutes) ],
43 exports: [ RouterModule ]
45 export class AboutRoutingModule {}