]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/+video-watch/video-watch-routing.module.ts
Playlist videos component
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-watch-routing.module.ts
index 97fa5c72512f58da12d247ccd87e840168312cc1..0d78090445f2c1a802d574fb0e55c07db4c3b186 100644 (file)
@@ -7,9 +7,18 @@ import { VideoWatchComponent } from './video-watch.component'
 
 const videoWatchRoutes: Routes = [
   {
-    path: '',
+    path: 'playlist/:uuid',
     component: VideoWatchComponent,
-    canActivateChild: [ MetaGuard ]
+    canActivate: [ MetaGuard ]
+  },
+  {
+    path: ':uuid/comments/:commentId',
+    redirectTo: ':uuid'
+  },
+  {
+    path: ':uuid',
+    component: VideoWatchComponent,
+    canActivate: [ MetaGuard ]
   }
 ]