|
@@ -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)
|
|
|
},
|
|
|
|