]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/login/login-routing.module.ts
Translated using Weblate (Hungarian)
[github/Chocobozzz/PeerTube.git] / client / src / app / login / login-routing.module.ts
CommitLineData
df98563e
C
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
8b13c289 3import { MetaGuard } from '@ngx-meta/core'
df98563e 4import { LoginComponent } from './login.component'
f3ae606c 5import { ServerConfigResolver } from '@app/core/routing/server-config-resolver.service'
693b1aba
C
6
7const 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})
27export class LoginRoutingModule {}