|
@@ -1,6 +1,7 @@
|
|
|
import { NgModule } from '@angular/core';
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
import { Tab5Page } from './tab5.page';
|
|
|
+import { AuthGuard } from './auth.guard';
|
|
|
import { UserDashboardPage } from './user-dashboard.page';
|
|
|
import { RegisterPage } from './register.page';
|
|
|
import { UploadQualificationPage } from './upload-qualification.page';
|
|
@@ -12,15 +13,13 @@ const routes: Routes = [
|
|
|
},
|
|
|
{
|
|
|
path: 'user-dashboard',
|
|
|
- component: UserDashboardPage
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'register',
|
|
|
- component: RegisterPage
|
|
|
+ component: UserDashboardPage,
|
|
|
+ canActivate: [AuthGuard]
|
|
|
},
|
|
|
{
|
|
|
path: 'upload-qualification',
|
|
|
- component: UploadQualificationPage
|
|
|
+ loadChildren: () => import('./upload-qualification.page').then(m => m.UploadQualificationPage),
|
|
|
+ canActivate: [AuthGuard]
|
|
|
}
|
|
|
];
|
|
|
|