]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/videos-routing.module.ts
Add local user subscriptions
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / videos-routing.module.ts
index 538a43c6dc3c486548dd5dd4947d8fa8efaa58ae..18ed5257064e00781860929746fdb2916d7e8056 100644 (file)
@@ -5,6 +5,7 @@ import { MetaGuard } from '@ngx-meta/core'
 import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component'
 import { VideoTrendingComponent } from './video-list/video-trending.component'
 import { VideosComponent } from './videos.component'
+import { VideoUserSubscriptionsComponent } from '@app/videos/video-list/video-user-subscriptions.component'
 
 const videosRoutes: Routes = [
   {
@@ -12,11 +13,6 @@ const videosRoutes: Routes = [
     component: VideosComponent,
     canActivateChild: [ MetaGuard ],
     children: [
-      {
-        path: 'list',
-        pathMatch: 'full',
-        redirectTo: 'recently-added'
-      },
       {
         path: 'trending',
         component: VideoTrendingComponent,
@@ -35,6 +31,15 @@ const videosRoutes: Routes = [
           }
         }
       },
+      {
+        path: 'subscriptions',
+        component: VideoUserSubscriptionsComponent,
+        data: {
+          meta: {
+            title: 'Subscriptions'
+          }
+        }
+      },
       {
         path: 'local',
         component: VideoLocalComponent,