Przeglądaj źródła

feat(go): return extclient on create;

VishalDalwadi 2 dni temu
rodzic
commit
7c3eceddc6
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      controllers/ext_client.go

+ 2 - 0
controllers/ext_client.go

@@ -825,6 +825,8 @@ func createExtClient(w http.ResponseWriter, r *http.Request) {
 	}
 
 	w.WriteHeader(http.StatusOK)
+	json.NewEncoder(w).Encode(extclient)
+
 	go func() {
 		if err := logic.SetClientDefaultACLs(&extclient); err != nil {
 			slog.Error(