]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/app-routing.module.ts
Add auto scroll to videos list
[github/Chocobozzz/PeerTube.git] / client / src / app / app-routing.module.ts
1 import { NgModule } from '@angular/core'
2 import { Routes, RouterModule } from '@angular/router'
3
4 import { PreloadSelectedModulesList } from './core'
5
6 const routes: Routes = [
7 {
8 path: '',
9 redirectTo: '/videos/trending',
10 pathMatch: 'full'
11 },
12 {
13 path: 'admin',
14 loadChildren: './+admin#AdminModule'
15 }
16 ]
17
18 @NgModule({
19 imports: [
20 RouterModule.forRoot(routes, {
21 useHash: Boolean(history.pushState) === false,
22 preloadingStrategy: PreloadSelectedModulesList
23 })
24 ],
25 providers: [ PreloadSelectedModulesList ],
26 exports: [ RouterModule ]
27 })
28 export class AppRoutingModule {}