X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2Fvideos-routing.module.ts;h=70968b4d1d90681142ce34838c23ab40c8cfa91e;hb=9eee32fc34ece1cc5e624ae15d81bfede68be33f;hp=766d29d2209fe386b4b9877781411a7079e85e89;hpb=693b1aba4675f7e3d850e0f6d07dbfc7bdff9b8c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/videos/videos-routing.module.ts b/client/src/app/videos/videos-routing.module.ts index 766d29d22..70968b4d1 100644 --- a/client/src/app/videos/videos-routing.module.ts +++ b/client/src/app/videos/videos-routing.module.ts @@ -1,7 +1,7 @@ import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; -import { VideoAddComponent } from './video-add'; +import { VideoAddComponent, VideoUpdateComponent } from './video-edit'; import { VideoListComponent } from './video-list'; import { VideosComponent } from './videos.component'; import { VideoWatchComponent } from './video-watch'; @@ -16,7 +16,7 @@ const videosRoutes: Routes = [ component: VideoListComponent, data: { meta: { - titleSuffix: ' - Videos list' + title: 'Videos list' } } }, @@ -25,10 +25,23 @@ const videosRoutes: Routes = [ component: VideoAddComponent, data: { meta: { - titleSuffix: ' - Add a video' + title: 'Add a video' } } }, + { + path: 'edit/:id', + component: VideoUpdateComponent, + data: { + meta: { + title: 'Edit a video' + } + } + }, + { + path: ':id', + redirectTo: 'watch/:id' + }, { path: 'watch/:id', component: VideoWatchComponent