diff options
author | Chocobozzz <me@florianbigard.com> | 2018-03-01 13:57:29 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-03-01 13:57:29 +0100 |
commit | 901637bb87f5eb0518fb7ca69d98b53ed918339e (patch) | |
tree | a8e8943fef7a109ba269d33029174cbdf4dde6d2 /client/src/app/app-routing.module.ts | |
parent | a73c582e5b6f5c52427b38aaf55b3afbead24053 (diff) | |
download | PeerTube-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.ts | 10 |
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 @@ | |||
1 | import { NgModule } from '@angular/core' | 1 | import { NgModule } from '@angular/core' |
2 | import { Routes, RouterModule } from '@angular/router' | 2 | import { Routes, RouterModule } from '@angular/router' |
3 | import { RedirectService } from '@app/core/routing/redirect.service' | ||
3 | 4 | ||
4 | import { PreloadSelectedModulesList } from './core' | 5 | import { PreloadSelectedModulesList } from './core' |
5 | 6 | ||
6 | const routes: Routes = [ | 7 | const 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 | }) |
28 | export class AppRoutingModule {} | 26 | export class AppRoutingModule {} |