LP1816475: Booking module refresh
[working/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 {CreateReservationComponent} from './create-reservation.component';
4 import {ManageReservationsComponent} from './manage-reservations.component';
5 import {PickupComponent} from './pickup.component';
6 import {PullListComponent} from './pull-list.component';
7 import {ReturnComponent} from './return.component';
8
9 const routes: Routes = [{
10   path: 'create_reservation',
11     children: [
12       {path: '', component: CreateReservationComponent},
13       {path: 'for_patron/:patron_id', component: CreateReservationComponent},
14       {path: 'for_resource/:resource_barcode', component: CreateReservationComponent},
15   ]}, {
16   path: 'manage_reservations',
17     children: [
18       {path: '', component: ManageReservationsComponent},
19       {path: 'by_patron/:patron_id', component: ManageReservationsComponent},
20       {path: 'by_resource/:resource_barcode', component: ManageReservationsComponent},
21       {path: 'by_resource_type/:resource_type_id', component: ManageReservationsComponent},
22   ]}, {
23   path: 'pickup',
24     children: [
25       {path: '', component: PickupComponent},
26       {path: 'by_patron/:patron_id', component: PickupComponent},
27   ]}, {
28   path: 'pull_list',
29   component: PullListComponent
30   }, {
31   path: 'return',
32     children: [
33       {path: '', component: ReturnComponent},
34       {path: 'by_patron/:patron_id', component: ReturnComponent},
35   ]},
36   ];
37
38 @NgModule({
39   imports: [RouterModule.forChild(routes)],
40   exports: [RouterModule],
41   providers: []
42 })
43
44 export class BookingRoutingModule {}