X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2Fvideos-routing.module.ts;h=70968b4d1d90681142ce34838c23ab40c8cfa91e;hb=9eee32fc34ece1cc5e624ae15d81bfede68be33f;hp=005e9def6548bf39e41c50935dc67f3c81e17d3c;hpb=55b3394641a764b89132d0057d3fdf656dab2389;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 005e9def6..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'; @@ -29,6 +29,15 @@ const videosRoutes: Routes = [ } } }, + { + path: 'edit/:id', + component: VideoUpdateComponent, + data: { + meta: { + title: 'Edit a video' + } + } + }, { path: ':id', redirectTo: 'watch/:id'