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 { ContactAdminModalComponent } from '@app/+about/about-instance/contact-admin-modal.component'
7 import { AboutPeertubeComponent } from '@app/+about/about-peertube/about-peertube.component'
8 import { AboutComponent } from './about.component'
10 const aboutRoutes: Routes = [
13 component: AboutComponent,
17 redirectTo: 'instance',
22 component: AboutInstanceComponent,
25 title: $localize`About this instance`
29 instanceData: AboutInstanceResolver
34 component: AboutInstanceComponent,
37 title: $localize`Contact`
42 instanceData: AboutInstanceResolver
47 component: AboutPeertubeComponent,
50 title: $localize`About PeerTube`
56 component: AboutFollowsComponent,
59 title: $localize`About this instance's network`
68 imports: [ RouterModule.forChild(aboutRoutes) ],
69 exports: [ RouterModule ]
71 export class AboutRoutingModule {}