-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathapp-routing.module.ts
More file actions
120 lines (115 loc) · 4 KB
/
Copy pathapp-routing.module.ts
File metadata and controls
120 lines (115 loc) · 4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { AppRoutes } from './app.routes';
import { AccessDeniedComponent } from '@lib/modules/root-routes/components/access-denied/access-denied.component';
import { MaintenanceComponent } from '@lib/modules/root-routes/components/maintenance/maintenance.component';
import { PageNotFoundComponent } from '@lib/modules/root-routes/components/page-not-found/page-not-found.component';
import { HelpComponent } from '@lib/modules/root-routes/components/help/help.component';
import { AuthRoutes } from '@auth/auth.routes';
import { EnrolmentRoutes } from '@enrolment/enrolment.routes';
import { SiteRoutes } from '@registration/site-registration.routes';
import { AdjudicationRoutes } from '@adjudication/adjudication.routes';
import { ProvisionerAccessRoutes } from '@certificate/provisioner-access.routes';
import { PhsaEformsRoutes } from '@phsa/phsa-eforms.routes';
import { SatEformsRoutes } from '@sat/sat-eforms.routes';
import { GisEnrolmentRoutes } from '@gis/gis-enrolment.routes';
import { HealthAuthSiteRegRoutes } from '@health-auth/health-auth-site-reg.routes';
import { PaperEnrolmentRoutes } from '@paper-enrolment/paper-enrolment.routes';
import { NotEligibleComponent } from '@lib/modules/root-routes/components/not-eligible/not-eligible.component';
const routes: Routes = [
{
path: AuthRoutes.MODULE_PATH,
loadChildren: () => import('./modules/auth/auth.module').then(m => m.AuthModule)
},
{
path: EnrolmentRoutes.MODULE_PATH,
loadChildren: () => import('./modules/enrolment/enrolment.module').then(m => m.EnrolmentModule)
},
{
path: SiteRoutes.MODULE_PATH,
loadChildren: () => import('./modules/site-registration/site-registration.module').then(m => m.SiteRegistrationModule)
},
{
path: AdjudicationRoutes.MODULE_PATH,
loadChildren: () => import('./modules/adjudication/adjudication.module').then(m => m.AdjudicationModule)
},
{
path: ProvisionerAccessRoutes.MODULE_PATH,
loadChildren: () => import('./modules/provisioner-access/provisioner-access.module').then(m => m.ProvisionerAccessModule)
},
{
path: PhsaEformsRoutes.MODULE_PATH,
loadChildren: () => import('./modules/phsa-eforms/phsa-eforms.module').then(m => m.PhsaEformsModule)
},
{
path: SatEformsRoutes.MODULE_PATH,
loadChildren: () => import('./modules/sat-eforms/sat-eforms.module').then(m => m.SatEformsModule)
},
{
path: GisEnrolmentRoutes.MODULE_PATH,
loadChildren: () => import('./modules/gis-enrolment/gis-enrolment.module').then(m => m.GisEnrolmentModule)
},
{
path: HealthAuthSiteRegRoutes.MODULE_PATH,
loadChildren: () => import('./modules/health-auth-site-reg/health-auth-site-reg.module').then(m => m.HealthAuthSiteRegModule)
},
{
path: PaperEnrolmentRoutes.MODULE_PATH,
loadChildren: () => import('./modules/paper-enrolment/paper-enrolment.module').then(m => m.PaperEnrolmentModule)
},
{
path: AppRoutes.DENIED,
component: AccessDeniedComponent,
data: {
title: 'Access Denied'
}
},
{
path: AppRoutes.UNDERAGED,
component: NotEligibleComponent,
data: {
title: 'Underaged'
}
},
{
path: AppRoutes.IDENTITY_INSURANCE_LEVEL,
component: NotEligibleComponent,
data: {
title: 'Identity Insurance Level Not Met'
}
},
{
path: AppRoutes.MAINTENANCE,
component: MaintenanceComponent,
data: {
title: 'Under Scheduled Maintenance'
}
},
{
// Allow for direct routing to page not found
path: AppRoutes.PAGE_NOT_FOUND,
component: PageNotFoundComponent,
data: {
title: 'Page Not Found'
}
},
{
path: AppRoutes.HELP,
component: HelpComponent,
data: {
title: 'Help'
}
},
{
path: AppRoutes.DEFAULT,
component: PageNotFoundComponent,
data: {
title: 'Page Not Found'
}
}
];
@NgModule({
imports: [RouterModule.forRoot(routes, { enableTracing: false })],
exports: [RouterModule]
})
export class AppRoutingModule { }