]>
Commit | Line | Data |
---|---|---|
df98563e C |
1 | import { NgModule } from '@angular/core' |
2 | import { RouterModule, Routes } from '@angular/router' | |
67ed6552 | 3 | import { ServerConfigResolver, UnloggedGuard } from '@app/core' |
8b13c289 | 4 | import { MetaGuard } from '@ngx-meta/core' |
b247a132 | 5 | import { RegisterComponent } from './register.component' |
a184c71b | 6 | |
b247a132 | 7 | const registerRoutes: Routes = [ |
a184c71b | 8 | { |
b247a132 C |
9 | path: '', |
10 | component: RegisterComponent, | |
11 | canActivate: [ MetaGuard, UnloggedGuard ], | |
a184c71b C |
12 | data: { |
13 | meta: { | |
f29f487e | 14 | title: $localize`Register` |
a184c71b | 15 | } |
f3ae606c C |
16 | }, |
17 | resolve: { | |
ba430d75 | 18 | serverConfig: ServerConfigResolver |
a184c71b C |
19 | } |
20 | } | |
df98563e | 21 | ] |
a184c71b C |
22 | |
23 | @NgModule({ | |
b247a132 | 24 | imports: [ RouterModule.forChild(registerRoutes) ], |
a184c71b C |
25 | exports: [ RouterModule ] |
26 | }) | |
b247a132 | 27 | export class RegisterRoutingModule {} |