Revision 62559
Added by John Balasis about 1 year ago
app-routing.module.ts | ||
---|---|---|
3 | 3 |
import { HomeComponent } from './pages/landing/home/home.component'; |
4 | 4 |
import { AuthGuardService } from './services/auth-guard.service'; |
5 | 5 |
import { ForbiddenPageComponent } from './shared/reusablecomponents/403-forbidden-page.component'; |
6 |
import { EmptyPageComponent } from "./pages/emptypage/empty-page.component";
|
|
7 |
import { JoinComponent } from "./pages/join/join.component";
|
|
8 |
import { AboutComponent } from "./pages/landing/about/about.component";
|
|
6 |
import { EmptyPageComponent } from './pages/emptypage/empty-page.component';
|
|
7 |
import { JoinComponent } from './pages/join/join.component';
|
|
8 |
import { AboutComponent } from './pages/landing/about/about.component';
|
|
9 | 9 |
|
10 | 10 |
const appRoutes: Routes = [ |
11 | 11 |
{ |
... | ... | |
34 | 34 |
{ |
35 | 35 |
path: 'repository', |
36 | 36 |
loadChildren: () => import('./pages/repository/repository.module').then(m => m.RepositoryModule), |
37 |
// loadChildren: () => import('./pages/repository/repository.module').then(m => m.RepositoryModule), |
|
38 | 37 |
canActivate: [AuthGuardService] |
39 | 38 |
}, |
40 | 39 |
{ |
41 | 40 |
path: 'repositoryAdmin', |
42 | 41 |
loadChildren: () => import('./pages/repository/repository.module').then(m => m.RepositoryModule), |
43 |
// loadChildren: () => import('./pages/repository/repository.module').then(m => m.RepositoryModule), |
|
44 | 42 |
canActivate: [AuthGuardService] |
45 | 43 |
}, |
46 |
|
|
47 |
|
|
48 |
// { |
|
49 |
// path: 'dashboard', |
|
50 |
// component: DashboardComponent, |
|
51 |
// canActivate: [AuthGuardService] |
|
52 |
// }, |
|
53 | 44 |
{ |
54 | 45 |
path: 'sources', |
55 | 46 |
loadChildren: () => import('./pages/sources/sources.module').then(m => m.SourcesModule), |
... | ... | |
64 | 55 |
loadChildren: () => import('./pages/content/content.module').then(m => m.ContentModule), |
65 | 56 |
canActivate: [AuthGuardService] |
66 | 57 |
}, |
67 |
// { |
|
68 |
// path: 'getImpact', |
|
69 |
// loadChildren: './pages/metrics/metrics.module#MetricsModule', |
|
70 |
// canActivate: [AuthGuardService] |
|
71 |
// }, |
|
72 | 58 |
{ |
73 | 59 |
path: 'admin', |
74 | 60 |
loadChildren: () => import('./pages/adminPg/adminPg.module').then(m => m.AdminPgModule), |
... | ... | |
77 | 63 |
path: '403-forbidden', |
78 | 64 |
component: ForbiddenPageComponent |
79 | 65 |
}, |
80 |
// { |
|
81 |
// path: '', |
|
82 |
// redirectTo: '/home', |
|
83 |
// pathMatch: 'full' |
|
84 |
// }, |
|
85 | 66 |
{ |
86 |
//fixme redirect to 404 |
|
67 |
// fixme redirect to 404
|
|
87 | 68 |
path: '**', |
88 | 69 |
redirectTo: '/403-forbidden', |
89 | 70 |
// component: ForbiddenPageComponent |
Also available in: Unified diff
finaly after so much rage it works probaply...