aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/videos-routing.module.ts
diff options
context:
space:
mode:
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 },