]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+signup/+verify-account/verify-account-routing.module.ts
Update to angular 12
[github/Chocobozzz/PeerTube.git] / client / src / app / +signup / +verify-account / verify-account-routing.module.ts
CommitLineData
d9eaee39
JM
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
d9eaee39 3import { MetaGuard } from '@ngx-meta/core'
b247a132
C
4import { VerifyAccountEmailComponent } from './verify-account-email/verify-account-email.component'
5import { VerifyAccountAskSendEmailComponent } from './verify-account-ask-send-email/verify-account-ask-send-email.component'
d9eaee39
JM
6
7const verifyAccountRoutes: Routes = [
8 {
9 path: '',
10 canActivateChild: [ MetaGuard ],
11 children: [
12 {
13 path: 'email',
14 component: VerifyAccountEmailComponent,
15 data: {
16 meta: {
dc5bb5ce 17 title: $localize`Verify account via email`
d9eaee39
JM
18 }
19 }
20 },
21 {
22 path: 'ask-send-email',
23 component: VerifyAccountAskSendEmailComponent,
24 data: {
25 meta: {
dc5bb5ce 26 title: $localize`Ask to send an email to verify you account`
d9eaee39
JM
27 }
28 }
29 }
30 ]
31 }
32]
33
34@NgModule({
35 imports: [ RouterModule.forChild(verifyAccountRoutes) ],
36 exports: [ RouterModule ]
37})
38export class VerifyAccountRoutingModule {}