]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/app-routing.module.ts
Change video abuse API response
[github/Chocobozzz/PeerTube.git] / client / src / app / app-routing.module.ts
index fe72c9181b0ea0faed03a44209d7ca0503391631..c8a6b392429238fadf7d82b9d41e34fe1ead5c09 100644 (file)
@@ -1,17 +1,13 @@
 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#AdminModule'
+    loadChildren: './+admin/admin.module#AdminModule'
   }
 ]
 
@@ -22,7 +18,9 @@ const routes: Routes = [
       preloadingStrategy: PreloadSelectedModulesList
     })
   ],
-  providers: [ PreloadSelectedModulesList ],
+  providers: [
+    PreloadSelectedModulesList
+  ],
   exports: [ RouterModule ]
 })
 export class AppRoutingModule {}