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'
8 import { AboutInstanceResolver } from '@app/+about/about-instance/about-instance.resolver'
10 const aboutRoutes: Routes = [
13 component: AboutComponent,
14 canActivateChild: [ MetaGuard ],
18 redirectTo: 'instance',
23 component: AboutInstanceComponent,
26 title: 'About this instance'
30 instanceData: AboutInstanceResolver
35 component: AboutPeertubeComponent,
38 title: 'About PeerTube'
44 component: AboutFollowsComponent,
47 title: 'About follows'
56 imports: [ RouterModule.forChild(aboutRoutes) ],
57 exports: [ RouterModule ]
59 export class AboutRoutingModule {}