5230383 vor 4 Monaten
Ursprung
Commit
1de609d966
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 4 0
      src/app/app-routing.module.ts

+ 4 - 0
src/app/app-routing.module.ts

@@ -1,6 +1,7 @@
 import { NgModule } from '@angular/core';
 import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
 import { IonicModule } from '@ionic/angular';
+import { authGuard } from 'src/modules/user/auth.guard';
 
 const routes: Routes = [
   {
@@ -64,14 +65,17 @@ const routes: Routes = [
   },
   {
     path: 'dongt',
+    canActivate:[authGuard],
     loadChildren: () => import('../modules/dongt/dongt.module').then( m => m.DongtPageModule)
   },
   {
     path: 'favorites',
+    canActivate:[authGuard],
     loadChildren: () => import('../modules/favorites/favorites.module').then( m => m.FavoritesPageModule)
   },
   {
     path: 'album',
+    canActivate:[authGuard],
     loadChildren: () => import('../modules/album/album.module').then( m => m.AlbumPageModule)
   },