material, device-order required doctor_id, infra search and parent,childrens
This commit is contained in:
@@ -193,7 +193,7 @@ func SetRoutes() http.Handler {
|
||||
"PATCH /{id}/consume": medicationitemdist.O.Consume,
|
||||
})
|
||||
|
||||
hk.GroupRoutes("/v1/device-order", r, hk.MapHandlerFunc{
|
||||
hk.GroupRoutes("/v1/device-order", r, auth.GuardMW, hk.MapHandlerFunc{
|
||||
"GET /": deviceorder.O.GetList,
|
||||
"GET /{id}": deviceorder.O.GetDetail,
|
||||
"POST /": deviceorder.O.Create,
|
||||
@@ -202,7 +202,7 @@ func SetRoutes() http.Handler {
|
||||
"PATCH /{id}/complete": deviceorder.O.Complete,
|
||||
})
|
||||
|
||||
hk.GroupRoutes("/v1/material-order", r, hk.MapHandlerFunc{
|
||||
hk.GroupRoutes("/v1/material-order", r, auth.GuardMW, hk.MapHandlerFunc{
|
||||
"GET /": materialorder.O.GetList,
|
||||
"GET /{id}": materialorder.O.GetDetail,
|
||||
"POST /": materialorder.O.Create,
|
||||
|
||||
Reference in New Issue
Block a user