X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=client%2Fsrc%2Fapp%2Flogin%2Flogin-routing.module.ts;h=4d89130418526c72cd99f8296228dc08e6715c7e;hb=65b247ddc75aa9f131af86dde21c8d958f7f4b39;hp=37199388424e38a4b6f3217c66d3943b560ccd6d;hpb=55b3394641a764b89132d0057d3fdf656dab2389;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/login/login-routing.module.ts b/client/src/app/login/login-routing.module.ts index 371993884..4d8913041 100644 --- a/client/src/app/login/login-routing.module.ts +++ b/client/src/app/login/login-routing.module.ts @@ -1,19 +1,22 @@ -import { NgModule } from '@angular/core'; -import { RouterModule, Routes } from '@angular/router'; +import { NgModule } from '@angular/core' +import { RouterModule, Routes } from '@angular/router' -import { LoginComponent } from './login.component'; +import { MetaGuard } from '@ngx-meta/core' + +import { LoginComponent } from './login.component' const loginRoutes: Routes = [ { path: 'login', component: LoginComponent, + canActivate: [ MetaGuard ], data: { meta: { title: 'Login' } } } -]; +] @NgModule({ imports: [ RouterModule.forChild(loginRoutes) ],