approve and switch poly

This commit is contained in:
vanilia
2025-11-24 10:40:54 +07:00
81 changed files with 624 additions and 351 deletions
@@ -303,7 +303,7 @@ func SetRoutes() http.Handler {
"PATCH /{id}/active": user.O.Active,
})
hc.RegCrud(r, "/v1/user-fes", userfes.O)
hk.GroupRoutes("/v1/patient", r, hk.MapHandlerFunc{
hk.GroupRoutes("/v1/patient", r, auth.GuardMW, hk.MapHandlerFunc{
"GET /": patient.O.GetList,
"GET /{id}": patient.O.GetDetail,
"POST /": patient.O.Create,