]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+about/about-routing.module.ts
Merge branch 'develop' into shorter-URLs-channels-accounts
[github/Chocobozzz/PeerTube.git] / client / src / app / +about / about-routing.module.ts
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'
8
9 const aboutRoutes: Routes = [
10 {
11 path: '',
12 component: AboutComponent,
13 children: [
14 {
15 path: '',
16 redirectTo: 'instance',
17 pathMatch: 'full'
18 },
19 {
20 path: 'instance',
21 component: AboutInstanceComponent,
22 data: {
23 meta: {
24 title: $localize`About this instance`
25 }
26 },
27 resolve: {
28 instanceData: AboutInstanceResolver
29 }
30 },
31 {
32 path: 'peertube',
33 component: AboutPeertubeComponent,
34 data: {
35 meta: {
36 title: $localize`About PeerTube`
37 }
38 }
39 },
40 {
41 path: 'follows',
42 component: AboutFollowsComponent,
43 data: {
44 meta: {
45 title: $localize`About this instance's network`
46 }
47 }
48 }
49 ]
50 }
51 ]
52
53 @NgModule({
54 imports: [ RouterModule.forChild(aboutRoutes) ],
55 exports: [ RouterModule ]
56 })
57 export class AboutRoutingModule {}