]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/login/login-routing.module.ts
HLS is only supported by ffmpeg 4
[github/Chocobozzz/PeerTube.git] / client / src / app / login / login-routing.module.ts
index da68519bd90c7a798811e744232286d4bd64474a..4d89130418526c72cd99f8296228dc08e6715c7e 100644 (file)
@@ -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: {
-        titleSuffix: ' - Login'
+        title: 'Login'
       }
     }
   }
-];
+]
 
 @NgModule({
   imports: [ RouterModule.forChild(loginRoutes) ],