]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/app-routing.module.ts
Add support section in video channel about page
[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: 'accounts',
13 loadChildren: './+accounts/accounts.module#AccountsModule'
14 },
15 {
16 path: 'video-channels',
17 loadChildren: './+video-channels/video-channels.module#VideoChannelsModule'
18 }
19 ]
20
21 @NgModule({
22 imports: [
23 RouterModule.forRoot(routes, {
24 useHash: Boolean(history.pushState) === false,
25 preloadingStrategy: PreloadSelectedModulesList
26 })
27 ],
28 providers: [
29 PreloadSelectedModulesList
30 ],
31 exports: [ RouterModule ]
32 })
33 export class AppRoutingModule {}