diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-27 14:21:03 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-27 14:59:09 +0200 |
commit | 78f912ed5733028ec2bf10c06c19f75b07943be2 (patch) | |
tree | 4bf9692230deabc4e050e5a7de126b38901969e9 /client/src/app/+about/about-routing.module.ts | |
parent | 61b909b9bf849516f30dab2bf5977acfbbddc5c6 (diff) | |
download | PeerTube-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.ts | 45 |
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 @@ | |||
1 | import { NgModule } from '@angular/core' | ||
2 | import { RouterModule, Routes } from '@angular/router' | ||
3 | import { MetaGuard } from '@ngx-meta/core' | ||
4 | import { AboutComponent } from './about.component' | ||
5 | import { AboutInstanceComponent } from '@app/+about/about-instance/about-instance.component' | ||
6 | import { AboutPeertubeComponent } from '@app/+about/about-peertube/about-peertube.component' | ||
7 | |||
8 | const 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 | }) | ||
45 | export class AboutRoutingModule {} | ||