]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/videos-routing.module.ts
Improve video edit/update/add typings
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / videos-routing.module.ts
index 561137b7013ed3391a2c47a0294953d9019ab713..da786c0f98a1c2fe6ff211c7b6717691c816ee97 100644 (file)
@@ -1,5 +1,5 @@
 import { NgModule } from '@angular/core'
-import { RouterModule, Routes } from '@angular/router'
+import { RouterModule, Routes, UrlSegment } from '@angular/router'
 import { VideoLocalComponent } from '@app/videos/video-list/video-local.component'
 import { MetaGuard } from '@ngx-meta/core'
 import { VideoSearchComponent } from './video-list'
@@ -64,7 +64,7 @@ const videosRoutes: Routes = [
         }
       },
       {
-        path: 'edit/:uuid',
+        path: 'update/:uuid',
         loadChildren: 'app/videos/+video-edit/video-update.module#VideoUpdateModule',
         data: {
           meta: {
@@ -73,8 +73,7 @@ const videosRoutes: Routes = [
         }
       },
       {
-        path: ':uuid',
-        pathMatch: 'full',
+        path: 'watch/:uuid/comments/:commentId',
         redirectTo: 'watch/:uuid'
       },
       {