Merge pull request #182 from dikstub-rssa/feat/sync-from-simgos-161
merge old-to-new/patient
This commit is contained in:
@@ -30,6 +30,8 @@ import (
|
||||
"simrs-vx/internal/interface/simgos-sync-handler/new/subspecialist"
|
||||
"simrs-vx/internal/interface/simgos-sync-handler/new/unit"
|
||||
|
||||
oldpatient "simrs-vx/internal/interface/simgos-sync-handler/old/patient"
|
||||
|
||||
oauth "simrs-vx/internal/interface/simgos-sync-handler/old/authentication" // just a reminder, an openauth
|
||||
)
|
||||
|
||||
@@ -76,7 +78,10 @@ func SetRoutes() http.Handler {
|
||||
|
||||
/******************** SvcToNew ******************/
|
||||
prefixold := "/old-to-new"
|
||||
hk.GroupRoutes(prefixold+"/v1/patient", r, oauth.OldGuardMW, hk.MapHandlerFunc{}) // FINISH THIS
|
||||
|
||||
hk.GroupRoutes(prefixold+"/v1/patient", r, oauth.OldGuardMW, hk.MapHandlerFunc{
|
||||
"POST /": oldpatient.O.Create,
|
||||
"PATCH /{id}": oldpatient.O.Update,
|
||||
"DELETE /{id}": oldpatient.O.Delete,
|
||||
}) // FINISH THIS
|
||||
return cmw.SetCors(handlerlogger.SetLog(r))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user