]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/app-routing.module.ts
Add ability to change the homepage
[github/Chocobozzz/PeerTube.git] / client / src / app / app-routing.module.ts
index f31b51e2381e8226c59e69df90164e76067a9b4f..c8a6b392429238fadf7d82b9d41e34fe1ead5c09 100644 (file)
@@ -1,14 +1,10 @@
 import { NgModule } from '@angular/core'
 import { Routes, RouterModule } from '@angular/router'
+import { RedirectService } from '@app/core/routing/redirect.service'
 
 import { PreloadSelectedModulesList } from './core'
 
 const routes: Routes = [
-  {
-    path: '',
-    redirectTo: '/videos/trending',
-    pathMatch: 'full'
-  },
   {
     path: 'admin',
     loadChildren: './+admin/admin.module#AdminModule'
@@ -22,7 +18,9 @@ const routes: Routes = [
       preloadingStrategy: PreloadSelectedModulesList
     })
   ],
-  providers: [ PreloadSelectedModulesList ],
+  providers: [
+    PreloadSelectedModulesList
+  ],
   exports: [ RouterModule ]
 })
 export class AppRoutingModule {}