]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+my-account/my-account-routing.module.ts
Add local user subscriptions
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-routing.module.ts
index 7e19cd9945cf3e2db0ae509a7399b83458483389..c1c9791519af2776173d0f7dd025ab61f4d5bcf0 100644 (file)
@@ -8,6 +8,8 @@ import { MyAccountVideosComponent } from './my-account-videos/my-account-videos.
 import { MyAccountVideoChannelsComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channels.component'
 import { MyAccountVideoChannelCreateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-create.component'
 import { MyAccountVideoChannelUpdateComponent } from '@app/+my-account/my-account-video-channels/my-account-video-channel-update.component'
+import { MyAccountVideoImportsComponent } from '@app/+my-account/my-account-video-imports/my-account-video-imports.component'
+import { MyAccountSubscriptionsComponent } from '@app/+my-account/my-account-subscriptions/my-account-subscriptions.component'
 
 const myAccountRoutes: Routes = [
   {
@@ -15,6 +17,11 @@ const myAccountRoutes: Routes = [
     component: MyAccountComponent,
     canActivateChild: [ MetaGuard, LoginGuard ],
     children: [
+      {
+        path: '',
+        redirectTo: 'settings',
+        pathMatch: 'full'
+      },
       {
         path: 'settings',
         component: MyAccountSettingsComponent,
@@ -59,6 +66,24 @@ const myAccountRoutes: Routes = [
             title: 'Account videos'
           }
         }
+      },
+      {
+        path: 'video-imports',
+        component: MyAccountVideoImportsComponent,
+        data: {
+          meta: {
+            title: 'Account video imports'
+          }
+        }
+      },
+      {
+        path: 'subscriptions',
+        component: MyAccountSubscriptionsComponent,
+        data: {
+          meta: {
+            title: 'Account subscriptions'
+          }
+        }
       }
     ]
   }