]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/booking/routing.module.ts
LP1851306: Port Capture Booking Resource to Angular
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / booking / routing.module.ts
1 import {NgModule} from '@angular/core';
2 import {RouterModule, Routes} from '@angular/router';
3 import {CaptureComponent} from './capture.component';
4 import {CreateReservationComponent} from './create-reservation.component';
5 import {ManageReservationsComponent} from './manage-reservations.component';
6 import {PickupComponent} from './pickup.component';
7 import {PullListComponent} from './pull-list.component';
8 import {ReturnComponent} from './return.component';
9
10 const routes: Routes = [{
11   path: 'create_reservation',
12     children: [
13       {path: '', component: CreateReservationComponent},
14       {path: 'for_patron/:patron_id', component: CreateReservationComponent},
15       {path: 'for_resource/:resource_barcode', component: CreateReservationComponent},
16   ]}, {
17   path: 'manage_reservations',
18     children: [
19       {path: '', component: ManageReservationsComponent},
20       {path: 'by_patron/:patron_id', component: ManageReservationsComponent},
21       {path: 'by_resource/:resource_barcode', component: ManageReservationsComponent},
22       {path: 'by_resource_type/:resource_type_id', component: ManageReservationsComponent},
23   ]}, {
24   path: 'capture',
25   component: CaptureComponent
26   }, {
27   path: 'pickup',
28     children: [
29       {path: '', component: PickupComponent},
30       {path: 'by_patron/:patron_id', component: PickupComponent},
31   ]}, {
32   path: 'pull_list',
33   component: PullListComponent
34   }, {
35   path: 'return',
36     children: [
37       {path: '', component: ReturnComponent},
38       {path: 'by_patron/:patron_id', component: ReturnComponent},
39   ]},
40   ];
41
42 @NgModule({
43   imports: [RouterModule.forChild(routes)],
44   exports: [RouterModule],
45   providers: []
46 })
47
48 export class BookingRoutingModule {}