5230383 hai 4 meses
pai
achega
1de609d966
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  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)
   },