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