]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - client/src/app/app-routing.module.ts
Decrease AP video cache
[github/Chocobozzz/PeerTube.git] / client / src / app / app-routing.module.ts
... / ...
CommitLineData
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
3
4import { PreloadSelectedModulesList } from './core'
5
6const routes: Routes = [
7 {
8 path: 'admin',
9 loadChildren: './+admin/admin.module#AdminModule'
10 },
11 {
12 path: 'my-account',
13 loadChildren: './+my-account/my-account.module#MyAccountModule'
14 },
15 {
16 path: 'accounts',
17 loadChildren: './+accounts/accounts.module#AccountsModule'
18 },
19 {
20 path: 'video-channels',
21 loadChildren: './+video-channels/video-channels.module#VideoChannelsModule'
22 }
23]
24
25@NgModule({
26 imports: [
27 RouterModule.forRoot(routes, {
28 useHash: Boolean(history.pushState) === false,
29 preloadingStrategy: PreloadSelectedModulesList
30 })
31 ],
32 providers: [
33 PreloadSelectedModulesList
34 ],
35 exports: [ RouterModule ]
36})
37export class AppRoutingModule {}