aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+about/about-routing.module.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-27 14:21:03 +0200
committerChocobozzz <me@florianbigard.com>2018-06-27 14:59:09 +0200
commit78f912ed5733028ec2bf10c06c19f75b07943be2 (patch)
tree4bf9692230deabc4e050e5a7de126b38901969e9 /client/src/app/+about/about-routing.module.ts
parent61b909b9bf849516f30dab2bf5977acfbbddc5c6 (diff)
downloadPeerTube-78f912ed5733028ec2bf10c06c19f75b07943be2.tar.gz
PeerTube-78f912ed5733028ec2bf10c06c19f75b07943be2.tar.zst
PeerTube-78f912ed5733028ec2bf10c06c19f75b07943be2.zip
Improve P2P & Privacy section
Diffstat (limited to 'client/src/app/+about/about-routing.module.ts')
-rw-r--r--client/src/app/+about/about-routing.module.ts45
1 files changed, 45 insertions, 0 deletions
diff --git a/client/src/app/+about/about-routing.module.ts b/client/src/app/+about/about-routing.module.ts
new file mode 100644
index 000000000..c83c62c7f
--- /dev/null
+++ b/client/src/app/+about/about-routing.module.ts
@@ -0,0 +1,45 @@
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
3import { MetaGuard } from '@ngx-meta/core'
4import { AboutComponent } from './about.component'
5import { AboutInstanceComponent } from '@app/+about/about-instance/about-instance.component'
6import { AboutPeertubeComponent } from '@app/+about/about-peertube/about-peertube.component'
7
8const aboutRoutes: Routes = [
9 {
10 path: '',
11 component: AboutComponent,
12 canActivateChild: [ MetaGuard ],
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: 'About this instance'
25 }
26 }
27 },
28 {
29 path: 'peertube',
30 component: AboutPeertubeComponent,
31 data: {
32 meta: {
33 title: 'About PeerTube'
34 }
35 }
36 }
37 ]
38 }
39]
40
41@NgModule({
42 imports: [ RouterModule.forChild(aboutRoutes) ],
43 exports: [ RouterModule ]
44})
45export class AboutRoutingModule {}