X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bvideos%2Fvideos-routing.module.ts;fp=client%2Fsrc%2Fapp%2Fvideos%2Fvideos-routing.module.ts;h=e0e877fc673eba0c3781ccfa6f7ba9e01af5d5f7;hb=1942f11d5ee6926ad93dc1b79fae18325ba5de18;hp=16b65be6363b49c05e0d80579b301b0121344310;hpb=67ed6552b831df66713bac9e672738796128d33f;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 similarity index 86% rename from client/src/app/videos/videos-routing.module.ts rename to client/src/app/+videos/videos-routing.module.ts index 16b65be63..e0e877fc6 100644 --- a/client/src/app/videos/videos-routing.module.ts +++ b/client/src/app/+videos/videos-routing.module.ts @@ -1,17 +1,17 @@ import { NgModule } from '@angular/core' import { RouterModule, Routes } from '@angular/router' -import { VideoLocalComponent } from '@app/videos/video-list/video-local.component' import { MetaGuard } from '@ngx-meta/core' +import { VideoOverviewComponent } from './video-list/overview/video-overview.component' +import { VideoLocalComponent } from './video-list/video-local.component' +import { VideoMostLikedComponent } from './video-list/video-most-liked.component' 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 './video-list/video-user-subscriptions.component' -import { VideoOverviewComponent } from './video-list/overview/video-overview.component' +import { VideosComponent } from './videos.component' const videosRoutes: Routes = [ { - path: 'videos', + path: '', component: VideosComponent, canActivateChild: [ MetaGuard ], children: [ @@ -91,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' @@ -100,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' @@ -109,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 }