aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app-routing.module.ts
diff options
context:
space:
mode:
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 {}