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 import { AboutFollowsComponent } from '@app/+about/about-follows/about-follows.component'
9 const aboutRoutes: Routes = [
12 component: AboutComponent,
13 canActivateChild: [ MetaGuard ],
17 redirectTo: 'instance',
22 component: AboutInstanceComponent,
25 title: 'About this instance'
31 component: AboutPeertubeComponent,
34 title: 'About PeerTube'
40 component: AboutFollowsComponent,
43 title: 'About follows'
52 imports: [ RouterModule.forChild(aboutRoutes) ],
53 exports: [ RouterModule ]
55 export class AboutRoutingModule {}