]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/app-routing.module.ts
Fixes #574 account link width on video view (#665)
[github/Chocobozzz/PeerTube.git] / client / src / app / app-routing.module.ts
1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3
4 import { PreloadSelectedModulesList } from './core'
5
6 const 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 path: '**',
25 loadChildren: './+page-not-found/page-not-found.module#PageNotFoundModule'
26 }
27 ]
28
29 @NgModule({
30 imports: [
31 RouterModule.forRoot(routes, {
32 useHash: Boolean(history.pushState) === false,
33 preloadingStrategy: PreloadSelectedModulesList
34 })
35 ],
36 providers: [
37 PreloadSelectedModulesList
38 ],
39 exports: [ RouterModule ]
40 })
41 export class AppRoutingModule {}