diff options
Diffstat (limited to 'client/src/app/videos/videos-routing.module.ts')
-rw-r--r-- | client/src/app/videos/videos-routing.module.ts | 11 |
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 @@ | |||
1 | import { NgModule } from '@angular/core'; | 1 | import { NgModule } from '@angular/core'; |
2 | import { RouterModule, Routes } from '@angular/router'; | 2 | import { RouterModule, Routes } from '@angular/router'; |
3 | 3 | ||
4 | import { VideoAddComponent } from './video-add'; | 4 | import { VideoAddComponent, VideoUpdateComponent } from './video-edit'; |
5 | import { VideoListComponent } from './video-list'; | 5 | import { VideoListComponent } from './video-list'; |
6 | import { VideosComponent } from './videos.component'; | 6 | import { VideosComponent } from './videos.component'; |
7 | import { VideoWatchComponent } from './video-watch'; | 7 | import { 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 | }, |