X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2Fvideos-routing.module.ts;h=11a087d0af38567642cdb95d2d9c77fc0e215e48;hb=9f0327aeb39c307ce7da28dda57cc526c928ca62;hp=bc7520207b3269f603260f8dfbe98f6097b81eb5;hpb=f36da21e40104a50acb00132920b835240cebb38;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/videos/videos-routing.module.ts b/client/src/app/videos/videos-routing.module.ts index bc7520207..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 import { MetaGuard } from '@ngx-meta/core' import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component' import { VideoTrendingComponent } from './video-list/video-trending.component' +import { VideoMostLikedComponent } from './video-list/video-most-liked.component' import { VideosComponent } from './videos.component' import { VideoUserSubscriptionsComponent } from '@app/videos/video-list/video-user-subscriptions.component' import { VideoOverviewComponent } from '@app/videos/video-list/video-overview.component' @@ -19,7 +20,7 @@ const videosRoutes: Routes = [ component: VideoOverviewComponent, data: { meta: { - title: 'Videos overview' + title: 'Discover videos' } } }, @@ -36,6 +37,19 @@ const videosRoutes: Routes = [ } } }, + { + path: 'most-liked', + component: VideoMostLikedComponent, + data: { + meta: { + title: 'Most liked videos' + }, + reuse: { + enabled: true, + key: 'most-liked-videos-list' + } + } + }, { path: 'recently-added', component: VideoRecentlyAddedComponent, @@ -77,7 +91,7 @@ const videosRoutes: Routes = [ }, { path: 'upload', - loadChildren: () => import('app/videos/+video-edit/video-add.module').then(m => m.VideoAddModule), + loadChildren: () => import('@app/videos/+video-edit/video-add.module').then(m => m.VideoAddModule), data: { meta: { title: 'Upload a video' @@ -86,7 +100,7 @@ const videosRoutes: Routes = [ }, { path: 'update/:uuid', - loadChildren: () => import('app/videos/+video-edit/video-update.module').then(m => m.VideoUpdateModule), + loadChildren: () => import('@app/videos/+video-edit/video-update.module').then(m => m.VideoUpdateModule), data: { meta: { title: 'Edit a video' @@ -95,7 +109,7 @@ const videosRoutes: Routes = [ }, { path: 'watch', - loadChildren: () => import('app/videos/+video-watch/video-watch.module').then(m => m.VideoWatchModule), + loadChildren: () => import('@app/videos/+video-watch/video-watch.module').then(m => m.VideoWatchModule), data: { preload: 3000 }