Merge branch 'dev' of https://github.com/dikstub-rssa/simrs-be into feat/chemo-plan
This commit is contained in:
@@ -374,10 +374,31 @@ func SetRoutes() http.Handler {
|
||||
/******************** sources ********************/
|
||||
hc.RegCrudByCode(r, "/v1/division", division.O)
|
||||
hc.RegCrudByCode(r, "/v1/division-position", divisionposition.O)
|
||||
hc.RegCrudByCode(r, "/v1/installation", installation.O)
|
||||
hk.GroupRoutes("/v1/installation", r, hk.MapHandlerFunc{
|
||||
"GET /": installation.O.GetList,
|
||||
"GET /{id}": installation.O.GetDetail,
|
||||
"POST /": installation.O.Create,
|
||||
"PATCH /{id}": installation.O.Update,
|
||||
"DELETE /{id}": installation.O.Delete,
|
||||
"POST /bulk": installation.O.CreateBulk,
|
||||
})
|
||||
hc.RegCrudByCode(r, "/v1/installation-position", installationposition.O)
|
||||
hc.RegCrudByCode(r, "/v1/specialist", specialist.O)
|
||||
hc.RegCrudByCode(r, "/v1/subspecialist", subspecialist.O)
|
||||
hk.GroupRoutes("/v1/specialist", r, hk.MapHandlerFunc{
|
||||
"GET /": specialist.O.GetList,
|
||||
"GET /{id}": specialist.O.GetDetail,
|
||||
"POST /": specialist.O.Create,
|
||||
"PATCH /{id}": specialist.O.Update,
|
||||
"DELETE /{id}": specialist.O.Delete,
|
||||
"POST /bulk": specialist.O.CreateBulk,
|
||||
})
|
||||
hk.GroupRoutes("/v1/subspecialist", r, hk.MapHandlerFunc{
|
||||
"GET /": subspecialist.O.GetList,
|
||||
"GET /{id}": subspecialist.O.GetDetail,
|
||||
"POST /": subspecialist.O.Create,
|
||||
"PATCH /{id}": subspecialist.O.Update,
|
||||
"DELETE /{id}": subspecialist.O.Delete,
|
||||
"POST /bulk": subspecialist.O.CreateBulk,
|
||||
})
|
||||
hc.RegCrudByCode(r, "/v1/specialist-position", specialistposition.O)
|
||||
hc.RegCrudByCode(r, "/v1/subspecialist-position", subspecialistposition.O)
|
||||
hc.RegCrudByCode(r, "/v1/infra", infra.O)
|
||||
|
||||
Reference in New Issue
Block a user