-
Notifications
You must be signed in to change notification settings - Fork 0
/
facility-routes.go
58 lines (47 loc) · 1.41 KB
/
facility-routes.go
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
package main
func FacilityRoutes(root *Root) {
root.PostAuthorized(
"/api/facility/add-warehouse",
"VIEW_EDIT_FACILITY",
root.facility.AddWarehouseHandler)
root.GetAuthorized(
"/api/facility/view-warehouse",
"VIEW_EDIT_FACILITY",
root.facility.ViewWarehouseHandler)
root.GetAuthorized(
"/api/facility/get-warehouse/{warehouseId}",
"VIEW_EDIT_FACILITY",
root.facility.GetWarehouseHandler)
root.PostAuthorized(
"/api/facility/update-warehouse",
"VIEW_EDIT_FACILITY",
root.facility.UpdateWarehouseHandler)
root.PostAuthorized(
"/api/facility/delete-warehouse",
"VIEW_EDIT_FACILITY",
root.facility.DeleteWarehouseHandler)
root.GetAuthorized(
"/api/facility/view-customer-store",
"VIEW_EDIT_FACILITY",
root.facility.ViewCustomerStoreHandler)
root.GetAuthorized(
"/api/facility/query-simple-customer",
"VIEW_EDIT_FACILITY",
root.facility.QuerySimpleCustomerHandler)
root.PostAuthorized(
"/api/facility/add-customer-store",
"VIEW_EDIT_FACILITY",
root.facility.AddCustomerStoreHandler)
root.PostAuthorized(
"/api/facility/update-customer-store",
"VIEW_EDIT_FACILITY",
root.facility.UpdateCustomerStoreHandler)
root.PostAuthorized(
"/api/facility/delete-customer-store",
"VIEW_EDIT_FACILITY",
root.facility.DeleteCustomerStoreHandler)
root.GetAuthorized(
"/api/facility/view-all-customer-store",
"VIEW_EDIT_FACILITY",
root.facility.ViewAllCustomerStoreHandler)
}