]>
Commit | Line | Data |
---|---|---|
df98563e C |
1 | import { NgModule } from '@angular/core' |
2 | import { RouterModule, Routes } from '@angular/router' | |
8b13c289 | 3 | import { MetaGuard } from '@ngx-meta/core' |
df98563e | 4 | import { LoginComponent } from './login.component' |
f3ae606c | 5 | import { ServerConfigResolver } from '@app/core/routing/server-config-resolver.service' |
693b1aba C |
6 | |
7 | const loginRoutes: Routes = [ | |
8 | { | |
9 | path: 'login', | |
10 | component: LoginComponent, | |
8b13c289 | 11 | canActivate: [ MetaGuard ], |
693b1aba C |
12 | data: { |
13 | meta: { | |
55b33946 | 14 | title: 'Login' |
693b1aba | 15 | } |
f3ae606c C |
16 | }, |
17 | resolve: { | |
ba430d75 | 18 | serverConfig: ServerConfigResolver |
693b1aba C |
19 | } |
20 | } | |
df98563e | 21 | ] |
693b1aba C |
22 | |
23 | @NgModule({ | |
24 | imports: [ RouterModule.forChild(loginRoutes) ], | |
25 | exports: [ RouterModule ] | |
26 | }) | |
27 | export class LoginRoutingModule {} |