aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/videos/videos-routing.module.ts
diff options
context:
space:
mode:
authorJulien Maulny <julien.maulny@protonmail.com>2019-10-01 23:11:53 +0200
committerChocobozzz <chocobozzz@cpy.re>2019-10-18 14:04:10 +0200
commitc07eb946531dd190ae50624832e1147c8ccf3692 (patch)
treec379da4a1e63a3d4a0a19a5832650fe4aa85b8e2 /client/src/app/videos/videos-routing.module.ts
parentfff2183df6129362ad50941d4d1979d4aa292801 (diff)
downloadPeerTube-c07eb946531dd190ae50624832e1147c8ccf3692.tar.gz
PeerTube-c07eb946531dd190ae50624832e1147c8ccf3692.tar.zst
PeerTube-c07eb946531dd190ae50624832e1147c8ccf3692.zip
Add 'Most liked videos' page
Diffstat (limited to 'client/src/app/videos/videos-routing.module.ts')
-rw-r--r--client/src/app/videos/videos-routing.module.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/client/src/app/videos/videos-routing.module.ts b/client/src/app/videos/videos-routing.module.ts
index f0049d8c4..11a087d0a 100644
--- a/client/src/app/videos/videos-routing.module.ts
+++ b/client/src/app/videos/videos-routing.module.ts
@@ -4,6 +4,7 @@ import { VideoLocalComponent } from '@app/videos/video-list/video-local.componen
4import { MetaGuard } from '@ngx-meta/core' 4import { MetaGuard } from '@ngx-meta/core'
5import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component' 5import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component'
6import { VideoTrendingComponent } from './video-list/video-trending.component' 6import { VideoTrendingComponent } from './video-list/video-trending.component'
7import { VideoMostLikedComponent } from './video-list/video-most-liked.component'
7import { VideosComponent } from './videos.component' 8import { VideosComponent } from './videos.component'
8import { VideoUserSubscriptionsComponent } from '@app/videos/video-list/video-user-subscriptions.component' 9import { VideoUserSubscriptionsComponent } from '@app/videos/video-list/video-user-subscriptions.component'
9import { VideoOverviewComponent } from '@app/videos/video-list/video-overview.component' 10import { VideoOverviewComponent } from '@app/videos/video-list/video-overview.component'
@@ -37,6 +38,19 @@ const videosRoutes: Routes = [
37 } 38 }
38 }, 39 },
39 { 40 {
41 path: 'most-liked',
42 component: VideoMostLikedComponent,
43 data: {
44 meta: {
45 title: 'Most liked videos'
46 },
47 reuse: {
48 enabled: true,
49 key: 'most-liked-videos-list'
50 }
51 }
52 },
53 {
40 path: 'recently-added', 54 path: 'recently-added',
41 component: VideoRecentlyAddedComponent, 55 component: VideoRecentlyAddedComponent,
42 data: { 56 data: {