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
|
import { NgModule } from '@angular/core';
import { Routes, RouterModule, ActivatedRoute } from '@angular/router';
import { RoleFunctionsComponent } from './admin/role-functions/role-functions.component';
import { UsageComponent } from './admin/usage/usage.component';
import { CacheAdminComponent } from './admin/cache-admin/cache-admin.component';
import { RolesComponent } from './admin/roles/roles.component';
import { MenusComponent } from './admin/menus/menus.component';
import { SearchComponent } from './ext/profile/search/search.component';
import { SelfComponent } from './ext/profile/self/self.component';
import { ReportComponent } from './analytics/Report_List/Report/report.component';
import { RunReportComponent } from './analytics/Report_List/Report/run/run-report/run-report.component';
import { HeaderTabsWrapperComponent } from './analytics/Report_List/header-tabs-wrapper-component/header-tabs-wrapper.component';
import { RunReportFormFieldsComponent } from './analytics/Report_List/Report/run/run-report-form-fields/run-report-form-fields.component';
import { WelcomeDashboardComponent } from './welcome-dashboard/welcome-dashboard.component';
import {RefreshComponent} from './refresh/refresh.component';
import { DisplayAreaComponent } from './analytics/Report_List/display-area/display-area.component';
const routes: Routes = [
{ path: 'admin/role_function_list', component: RoleFunctionsComponent },
{ path: 'admin/usage_list', component : UsageComponent},
{ path: 'admin/cache_admin', component :CacheAdminComponent},
{ path: 'admin/admin', component :RolesComponent},
{ path: 'admin/admin_menu_edit', component :MenusComponent},
{ path: 'userProfile', component :SearchComponent},
{ path: 'userProfile/self_profile', component:SelfComponent},
{ path: 'report-list', component:ReportComponent},
{ path: 'create', component: HeaderTabsWrapperComponent},
{ path: 'reports/:reportMode/:reportId', component: HeaderTabsWrapperComponent},
{ path: 'run/:reportId', component: RunReportFormFieldsComponent},
{ path: 'run/:reportId/:queryParameters', component: RunReportFormFieldsComponent},
{ path: 'run', component: RunReportFormFieldsComponent},
{ path: 'displayArea/:menuId', component: DisplayAreaComponent},
{ path: 'welcome', component :WelcomeDashboardComponent},
{ path: 'refresh', component: RefreshComponent},
{ path: '', redirectTo: 'welcome'}
];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class PagesRoutingModule { }
|