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, 6 insertions, 5 deletions
diff --git a/client/src/app/videos/videos-routing.module.ts b/client/src/app/videos/videos-routing.module.ts
index 715671ba7..225b6b018 100644
--- a/client/src/app/videos/videos-routing.module.ts
+++ b/client/src/app/videos/videos-routing.module.ts
@@ -3,10 +3,8 @@ import { RouterModule, Routes } from '@angular/router'
3 3
4import { MetaGuard } from '@ngx-meta/core' 4import { MetaGuard } from '@ngx-meta/core'
5 5
6import { VideoAddComponent, VideoUpdateComponent } from './video-edit'
7import { VideoListComponent } from './video-list' 6import { VideoListComponent } from './video-list'
8import { VideosComponent } from './videos.component' 7import { VideosComponent } from './videos.component'
9import { VideoWatchComponent } from './video-watch'
10 8
11const videosRoutes: Routes = [ 9const videosRoutes: Routes = [
12 { 10 {
@@ -25,7 +23,7 @@ const videosRoutes: Routes = [
25 }, 23 },
26 { 24 {
27 path: 'add', 25 path: 'add',
28 component: VideoAddComponent, 26 loadChildren: 'app/videos/+video-edit#VideoAddModule',
29 data: { 27 data: {
30 meta: { 28 meta: {
31 title: 'Add a video' 29 title: 'Add a video'
@@ -34,7 +32,7 @@ const videosRoutes: Routes = [
34 }, 32 },
35 { 33 {
36 path: 'edit/:uuid', 34 path: 'edit/:uuid',
37 component: VideoUpdateComponent, 35 loadChildren: 'app/videos/+video-edit#VideoUpdateModule',
38 data: { 36 data: {
39 meta: { 37 meta: {
40 title: 'Edit a video' 38 title: 'Edit a video'
@@ -47,7 +45,10 @@ const videosRoutes: Routes = [
47 }, 45 },
48 { 46 {
49 path: 'watch/:uuid', 47 path: 'watch/:uuid',
50 component: VideoWatchComponent 48 loadChildren: 'app/videos/+video-watch#VideoWatchModule',
49 data: {
50 preload: 3000
51 }
51 } 52 }
52 ] 53 ]
53 } 54 }