-
Notifications
You must be signed in to change notification settings - Fork 14
/
drestaurant-courier.module.ts
79 lines (78 loc) · 2.63 KB
/
drestaurant-courier.module.ts
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
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Route } from '@angular/router';
import { DrestaurantCourierComponent } from './drestaurant-courier/drestaurant-courier.component';
import { CourierCreateComponent } from './courier-create/courier-create.component';
import { CourierDetailComponent } from './courier-detail/courier-detail.component';
import { CourierListComponent } from './courier-list/courier-list.component';
import { CourierOrderListComponent } from './courier-order-list/courier-order-list.component';
import { CourierOrderDetailComponent } from './courier-order-detail/courier-order-detail.component';
import { CourierOrderAssignToCourierComponent } from './courier-order-assign-to-courier/courier-order-assign-to-courier.component';
import { CourierOrderMarkAsDeliveredComponent } from './courier-order-mark-as-delivered/courier-order-mark-as-delivered.component';
import { DrestaurantSharedModule } from '@d-restaurant-frontend/drestaurant-shared';
import { HttpClientModule } from '@angular/common/http';
import { DrestaurantUiModule } from '@d-restaurant-frontend/drestaurant-ui';
import { ReactiveFormsModule } from '@angular/forms';
export const drestaurantCourierRoutes: Route[] = [
{
path: '',
component: DrestaurantCourierComponent,
children: [
{
path: '',
component: CourierListComponent,
children: [
{
path: ':id',
component: CourierDetailComponent
},
{
path: 'action/new',
component: CourierCreateComponent
}
]
},
{
path: 'orders',
component: CourierOrderListComponent,
children: [
{
path: ':id',
component: CourierOrderDetailComponent,
children: [
{
path: 'action/assign',
component: CourierOrderAssignToCourierComponent
},
{
path: 'action/markdelivered',
component: CourierOrderMarkAsDeliveredComponent
}
]
}
]
}
]
}
];
@NgModule({
imports: [
CommonModule,
RouterModule,
DrestaurantSharedModule,
DrestaurantUiModule,
HttpClientModule,
ReactiveFormsModule
],
declarations: [
DrestaurantCourierComponent,
CourierCreateComponent,
CourierDetailComponent,
CourierListComponent,
CourierOrderListComponent,
CourierOrderDetailComponent,
CourierOrderAssignToCourierComponent,
CourierOrderMarkAsDeliveredComponent
]
})
export class DrestaurantCourierModule {}