1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3 import { AboutFollowsComponent } from '@app/+about/about-follows/about-follows.component'
4 import { AboutInstanceComponent } from '@app/+about/about-instance/about-instance.component'
5 import { AboutInstanceResolver } from '@app/+about/about-instance/about-instance.resolver'
6 import { AboutPeertubeComponent } from '@app/+about/about-peertube/about-peertube.component'
7 import { AboutComponent } from './about.component'
9 const aboutRoutes: Routes = [
12 component: AboutComponent,
16 redirectTo: 'instance',
21 component: AboutInstanceComponent,
24 title: $localize`About this instance`
28 instanceData: AboutInstanceResolver
33 component: AboutInstanceComponent,
36 title: $localize`Contact`
41 instanceData: AboutInstanceResolver
46 component: AboutPeertubeComponent,
49 title: $localize`About PeerTube`
55 component: AboutFollowsComponent,
58 title: $localize`About this instance's network`
67 imports: [ RouterModule.forChild(aboutRoutes) ],
68 exports: [ RouterModule ]
70 export class AboutRoutingModule {}