]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/login/login-routing.module.ts
Lazy load static objects
[github/Chocobozzz/PeerTube.git] / client / src / app / login / login-routing.module.ts
1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3 import { MetaGuard } from '@ngx-meta/core'
4 import { LoginComponent } from './login.component'
5 import { ServerConfigResolver } from '@app/core/routing/server-config-resolver.service'
6
7 const loginRoutes: Routes = [
8 {
9 path: 'login',
10 component: LoginComponent,
11 canActivate: [ MetaGuard ],
12 data: {
13 meta: {
14 title: 'Login'
15 }
16 },
17 resolve: {
18 serverConfig: ServerConfigResolver
19 }
20 }
21 ]
22
23 @NgModule({
24 imports: [ RouterModule.forChild(loginRoutes) ],
25 exports: [ RouterModule ]
26 })
27 export class LoginRoutingModule {}