]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/app-routing.module.ts
Improve responsive account about page
[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
C
10 },
11 {
170726f5
C
12 path: 'accounts',
13 loadChildren: './+accounts/accounts.module#AccountsModule'
14 },
15 {
16 path: 'video-channels',
17 loadChildren: './+video-channels/video-channels.module#VideoChannelsModule'
693b1aba 18 }
df98563e 19]
693b1aba
C
20
21@NgModule({
04de542a
C
22 imports: [
23 RouterModule.forRoot(routes, {
24 useHash: Boolean(history.pushState) === false,
a685e25c 25 preloadingStrategy: PreloadSelectedModulesList
04de542a
C
26 })
27 ],
901637bb
C
28 providers: [
29 PreloadSelectedModulesList
30 ],
693b1aba
C
31 exports: [ RouterModule ]
32})
33export class AppRoutingModule {}