diff --git a/handlers/application/group_module.go b/handlers/application/group_module.go index b8832f5..6fb6e93 100644 --- a/handlers/application/group_module.go +++ b/handlers/application/group_module.go @@ -138,7 +138,6 @@ func (h *ApplicationHandler) DisplayGroupModule(w http.ResponseWriter, r *http.R w.WriteHeader(http.StatusInternalServerError) return } - fmt.Println(resp.Group.Members) var accounts = []any{} @@ -157,7 +156,6 @@ func (h *ApplicationHandler) DisplayGroupModule(w http.ResponseWriter, r *http.R accounts = append(accounts, a) } } - fmt.Println(accounts) cacheid := uuid.NewString() h.cache.PutWithTTL(cacheid, accounts, 1*time.Hour) @@ -198,12 +196,6 @@ func (h *ApplicationHandler) DisplayGroupModule(w http.ResponseWriter, r *http.R return } - fmt.Println("yeesssssssssssssssssssssssss") - fmt.Println(respbeneficiary.Account.Id) - fmt.Println("===================yeesssssssssssssssssssssssss") - fmt.Println(r.FormValue("beneficiaryid")) - fmt.Println("=====================yeesssssssssssssssssssssssss") - // } http.Redirect(w, r, fmt.Sprintf("/app/group_module/groups/%s", resp.Group.ToStorageType().ID), http.StatusFound) return } diff --git a/main.go b/main.go index d110e73..8fe2c90 100644 --- a/main.go +++ b/main.go @@ -109,17 +109,11 @@ func main() { /********************Code Supprt Emailing************************/ application.HandleFunc("/support/", applicationHandler.SupportSend) - // application.HandleFunc("/group_module/", applicationHandler.GroupModule) - // application.HandleFunc("/group_module/create", applicationHandler.GroupModuleCreate) /*********************** CODE GROUP **************************/ appGroup := application.PathPrefix("/group_module").Subrouter() appGroup.HandleFunc("/", applicationHandler.Groups) appGroup.HandleFunc("/groups", applicationHandler.CreateGroupModule) - //appGroup.HandleFunc("/createBeneficaire", applicationHandler.CreateGroupBeneficaire) - //appGroup.HandleFunc("/groups/{groupid}/createBeneficaire", applicationHandler.BeneficaireSearch) - //appGroup.HandleFunc("/groups/{groupid}/{beneficiaryid}", applicationHandler.DisplayGroupBeneficaire) appGroup.HandleFunc("/groups/{groupid}", applicationHandler.DisplayGroupModule) - //appGroup.HandleFunc("/groups/{groupid}/invite-admin", applicationHandler.AdministrationGroupInviteAdmin) /****************************************************************/ //TODO Subrouters with middlewares checking security for each module ? diff --git a/renderer/group_module.go b/renderer/group_module.go index 24e7ec1..ba3fd03 100644 --- a/renderer/group_module.go +++ b/renderer/group_module.go @@ -2,7 +2,6 @@ package renderer import ( "encoding/json" - "fmt" "html/template" "net/http" @@ -72,12 +71,7 @@ func (renderer *Renderer) DisplayGroupModule(w http.ResponseWriter, r *http.Requ } - fmt.Println(beneficiary) - state.ViewState = viewstate - fmt.Println("èèèèèèèèèèèèèèèèèèèèèèèèèè") - fmt.Println(state.ViewState) - fmt.Println(group) renderer.Render("beneficiaries_list", w, r, files, state) }