]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/app-routing.module.ts
Upgrade client dependencies
[github/Chocobozzz/PeerTube.git] / client / src / app / app-routing.module.ts
index fe72c9181b0ea0faed03a44209d7ca0503391631..936912d282fedddb07d171c6ccf593804da68729 100644 (file)
@@ -1,17 +1,24 @@
 import { NgModule } from '@angular/core'
-import { Routes, RouterModule } from '@angular/router'
+import { RouterModule, Routes } from '@angular/router'
 
 import { PreloadSelectedModulesList } from './core'
 
 const routes: Routes = [
   {
-    path: '',
-    redirectTo: '/videos/trending',
-    pathMatch: 'full'
+    path: 'admin',
+    loadChildren: './+admin/admin.module#AdminModule'
   },
   {
-    path: 'admin',
-    loadChildren: './+admin#AdminModule'
+    path: 'my-account',
+    loadChildren: './+my-account/my-account.module#MyAccountModule'
+  },
+  {
+    path: 'accounts',
+    loadChildren: './+accounts/accounts.module#AccountsModule'
+  },
+  {
+    path: 'video-channels',
+    loadChildren: './+video-channels/video-channels.module#VideoChannelsModule'
   }
 ]
 
@@ -22,7 +29,9 @@ const routes: Routes = [
       preloadingStrategy: PreloadSelectedModulesList
     })
   ],
-  providers: [ PreloadSelectedModulesList ],
+  providers: [
+    PreloadSelectedModulesList
+  ],
   exports: [ RouterModule ]
 })
 export class AppRoutingModule {}