8ce6dce3cccbf530c9b803d6543801bfdd619587
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / admin / local / routing.module.ts
1 import {NgModule} from '@angular/core';
2 import {RouterModule, Routes} from '@angular/router';
3 import {AdminLocalSplashComponent} from './admin-local-splash.component';
4 import {BasicAdminPageComponent} from '@eg/staff/admin/basic-admin-page.component';
5 import {AddressAlertComponent} from './address-alert.component';
6 import {AdminCarouselComponent} from './admin-carousel.component';
7 import {StandingPenaltyComponent} from './standing-penalty.component';
8 import {CourseTermMapComponent} from './course-reserves/course-term-map.component';
9
10 const routes: Routes = [{
11     path: 'splash',
12     component: AdminLocalSplashComponent
13 }, {
14     path: 'config/hold_matrix_matchpoint',
15     component: BasicAdminPageComponent,
16     data: [{schema: 'config', table: 'hold_matrix_matchpoint', disableOrgFilter: true}]
17 }, {
18     path: 'actor/address_alert',
19     component: AddressAlertComponent
20 }, {
21     path: 'container/carousel',
22     component: AdminCarouselComponent
23 }, {
24     path: 'asset/course_list',
25     loadChildren: () =>
26       import('./course-reserves/course-reserves.module').then(m => m.CourseReservesModule)
27 }, {
28     path: 'asset/course_module_term_course_map',
29     component: CourseTermMapComponent
30 }, {
31     path: 'config/standing_penalty',
32     component: StandingPenaltyComponent
33 }, {
34     path: 'action/survey',
35     loadChildren: () =>
36       import('./survey/survey.module').then(m => m.SurveyModule)
37 }, {
38     path: ':schema/:table',
39     component: BasicAdminPageComponent
40 }];
41
42 @NgModule({
43   imports: [RouterModule.forChild(routes)],
44   exports: [RouterModule]
45 })
46
47 export class AdminLocalRoutingModule {}