X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fapp-routing.module.ts;h=936912d282fedddb07d171c6ccf593804da68729;hb=230de99e7146f75b0af056a42c54161597c03002;hp=0f948434410ad488b80a77a6c90ce68134c6f947;hpb=a685e25ca05f08ad1b3f7fbaccc8744727bd8d27;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.ts index 0f9484344..936912d28 100644 --- a/client/src/app/app-routing.module.ts +++ b/client/src/app/app-routing.module.ts @@ -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/list', - 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 {}