]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+about/about-routing.module.ts
Merge branch 'release/3.2.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / +about / about-routing.module.ts
CommitLineData
78f912ed
C
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
a6dbbf03 3import { AboutFollowsComponent } from '@app/+about/about-follows/about-follows.component'
0f01a8ba 4import { AboutInstanceComponent } from '@app/+about/about-instance/about-instance.component'
b42f9c40 5import { AboutInstanceResolver } from '@app/+about/about-instance/about-instance.resolver'
0f01a8ba
C
6import { AboutPeertubeComponent } from '@app/+about/about-peertube/about-peertube.component'
7import { AboutComponent } from './about.component'
78f912ed
C
8
9const aboutRoutes: Routes = [
10 {
11 path: '',
12 component: AboutComponent,
78f912ed
C
13 children: [
14 {
15 path: '',
16 redirectTo: 'instance',
17 pathMatch: 'full'
18 },
19 {
20 path: 'instance',
21 component: AboutInstanceComponent,
22 data: {
23 meta: {
f29f487e 24 title: $localize`About this instance`
78f912ed 25 }
b42f9c40
C
26 },
27 resolve: {
28 instanceData: AboutInstanceResolver
78f912ed
C
29 }
30 },
31 {
32 path: 'peertube',
33 component: AboutPeertubeComponent,
34 data: {
35 meta: {
f29f487e 36 title: $localize`About PeerTube`
78f912ed
C
37 }
38 }
a6dbbf03
C
39 },
40 {
41 path: 'follows',
42 component: AboutFollowsComponent,
43 data: {
44 meta: {
dc5bb5ce 45 title: $localize`About this instance's network`
a6dbbf03
C
46 }
47 }
78f912ed
C
48 }
49 ]
50 }
51]
52
53@NgModule({
54 imports: [ RouterModule.forChild(aboutRoutes) ],
55 exports: [ RouterModule ]
56})
57export class AboutRoutingModule {}