]>
Commit | Line | Data |
---|---|---|
1 | import { NgModule } from '@angular/core' | |
2 | import { RouterModule, Routes } from '@angular/router' | |
3 | import { MetaGuard } from '@ngx-meta/core' | |
4 | import { RegisterComponent } from './register.component' | |
5 | import { ServerConfigResolver } from '@app/core/routing/server-config-resolver.service' | |
6 | import { UnloggedGuard } from '@app/core/routing/unlogged-guard.service' | |
7 | ||
8 | const registerRoutes: Routes = [ | |
9 | { | |
10 | path: '', | |
11 | component: RegisterComponent, | |
12 | canActivate: [ MetaGuard, UnloggedGuard ], | |
13 | data: { | |
14 | meta: { | |
15 | title: 'Register' | |
16 | } | |
17 | }, | |
18 | resolve: { | |
19 | serverConfig: ServerConfigResolver | |
20 | } | |
21 | } | |
22 | ] | |
23 | ||
24 | @NgModule({ | |
25 | imports: [ RouterModule.forChild(registerRoutes) ], | |
26 | exports: [ RouterModule ] | |
27 | }) | |
28 | export class RegisterRoutingModule {} |