]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+about/about-routing.module.ts
enable email verification by admin (#1348)
[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'
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 {}