]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/app-routing.module.ts
Filter by category (#720)
[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 = [
4b4f22fc
C
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'
a51bad1a
C
22 },
23 {
24 path: '**',
25 loadChildren: './+page-not-found/page-not-found.module#PageNotFoundModule'
4b4f22fc 26 }
df98563e 27]
693b1aba
C
28
29@NgModule({
04de542a
C
30 imports: [
31 RouterModule.forRoot(routes, {
32 useHash: Boolean(history.pushState) === false,
a685e25c 33 preloadingStrategy: PreloadSelectedModulesList
04de542a
C
34 })
35 ],
901637bb
C
36 providers: [
37 PreloadSelectedModulesList
38 ],
693b1aba
C
39 exports: [ RouterModule ]
40})
41export class AppRoutingModule {}