From da9e11f28bab3c90107c3a730ddbfb57d18475ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B3=BD=E6=B7=BC=20=E5=91=A8?= Date: Sat, 27 Sep 2025 18:28:34 +0800 Subject: Optimization: Reduce unnecessary logic of seaweedfs-mount --- cmd/seaweedfs-mount/main.go | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'cmd') diff --git a/cmd/seaweedfs-mount/main.go b/cmd/seaweedfs-mount/main.go index 174b530..12151e8 100644 --- a/cmd/seaweedfs-mount/main.go +++ b/cmd/seaweedfs-mount/main.go @@ -90,27 +90,6 @@ func main() { writeJSON(w, http.StatusOK, resp) }) - mux.HandleFunc("/configure", func(w http.ResponseWriter, r *http.Request) { - if r.Method != http.MethodPost { - writeError(w, http.StatusMethodNotAllowed, "method not allowed") - return - } - - var req mountmanager.ConfigureRequest - if err := json.NewDecoder(r.Body).Decode(&req); err != nil { - writeError(w, http.StatusBadRequest, "invalid request: "+err.Error()) - return - } - - resp, err := manager.Configure(&req) - if err != nil { - writeError(w, http.StatusBadRequest, err.Error()) - return - } - - writeJSON(w, http.StatusOK, resp) - }) - mux.HandleFunc("/healthz", func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusOK) _, _ = w.Write([]byte("ok")) -- cgit v1.2.3