diff options
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 {} |