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