aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app-routing.module.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-03-01 13:57:29 +0100
committerChocobozzz <me@florianbigard.com>2018-03-01 13:57:29 +0100
commit901637bb87f5eb0518fb7ca69d98b53ed918339e (patch)
treea8e8943fef7a109ba269d33029174cbdf4dde6d2 /client/src/app/app-routing.module.ts
parenta73c582e5b6f5c52427b38aaf55b3afbead24053 (diff)
downloadPeerTube-901637bb87f5eb0518fb7ca69d98b53ed918339e.tar.gz
PeerTube-901637bb87f5eb0518fb7ca69d98b53ed918339e.tar.zst
PeerTube-901637bb87f5eb0518fb7ca69d98b53ed918339e.zip
Add ability to change the homepage
Diffstat (limited to 'client/src/app/app-routing.module.ts')
-rw-r--r--client/src/app/app-routing.module.ts10
1 files changed, 4 insertions, 6 deletions
diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.ts
index f31b51e23..c8a6b3924 100644
--- a/client/src/app/app-routing.module.ts
+++ b/client/src/app/app-routing.module.ts
@@ -1,15 +1,11 @@
1import { NgModule } from '@angular/core' 1import { NgModule } from '@angular/core'
2import { Routes, RouterModule } from '@angular/router' 2import { Routes, RouterModule } from '@angular/router'
3import { RedirectService } from '@app/core/routing/redirect.service'
3 4
4import { PreloadSelectedModulesList } from './core' 5import { PreloadSelectedModulesList } from './core'
5 6
6const routes: Routes = [ 7const routes: Routes = [
7 { 8 {
8 path: '',
9 redirectTo: '/videos/trending',
10 pathMatch: 'full'
11 },
12 {
13 path: 'admin', 9 path: 'admin',
14 loadChildren: './+admin/admin.module#AdminModule' 10 loadChildren: './+admin/admin.module#AdminModule'
15 } 11 }
@@ -22,7 +18,9 @@ const routes: Routes = [
22 preloadingStrategy: PreloadSelectedModulesList 18 preloadingStrategy: PreloadSelectedModulesList
23 }) 19 })
24 ], 20 ],
25 providers: [ PreloadSelectedModulesList ], 21 providers: [
22 PreloadSelectedModulesList
23 ],
26 exports: [ RouterModule ] 24 exports: [ RouterModule ]
27}) 25})
28export class AppRoutingModule {} 26export class AppRoutingModule {}