aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/videos-routing.module.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-04-10 21:15:28 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-04-10 21:16:36 +0200
commitd8e689b864749648d03cf4391fd4a475126f01cd (patch)
tree299713e3c056873ba6fff5247b8f49a542f0bf45 /client/src/app/videos/videos-routing.module.ts
parenta184c71b526000f60f00649d260638723d426e6a (diff)
downloadPeerTube-d8e689b864749648d03cf4391fd4a475126f01cd.tar.gz
PeerTube-d8e689b864749648d03cf4391fd4a475126f01cd.tar.zst
PeerTube-d8e689b864749648d03cf4391fd4a475126f01cd.zip
Client: add basic support for updating a video
Diffstat (limited to 'client/src/app/videos/videos-routing.module.ts')
-rw-r--r--client/src/app/videos/videos-routing.module.ts11
1 files changed, 10 insertions, 1 deletions
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 @@
1import { NgModule } from '@angular/core'; 1import { NgModule } from '@angular/core';
2import { RouterModule, Routes } from '@angular/router'; 2import { RouterModule, Routes } from '@angular/router';
3 3
4import { VideoAddComponent } from './video-add'; 4import { VideoAddComponent, VideoUpdateComponent } from './video-edit';
5import { VideoListComponent } from './video-list'; 5import { VideoListComponent } from './video-list';
6import { VideosComponent } from './videos.component'; 6import { VideosComponent } from './videos.component';
7import { VideoWatchComponent } from './video-watch'; 7import { VideoWatchComponent } from './video-watch';
@@ -30,6 +30,15 @@ const videosRoutes: Routes = [
30 } 30 }
31 }, 31 },
32 { 32 {
33 path: 'edit/:id',
34 component: VideoUpdateComponent,
35 data: {
36 meta: {
37 title: 'Edit a video'
38 }
39 }
40 },
41 {
33 path: ':id', 42 path: ':id',
34 redirectTo: 'watch/:id' 43 redirectTo: 'watch/:id'
35 }, 44 },