diff options
| author | 泽淼 周 <zhouzemiao@ihuman.com> | 2025-09-27 18:28:34 +0800 |
|---|---|---|
| committer | Chris Lu <chrislusf@users.noreply.github.com> | 2025-12-06 18:53:22 -0800 |
| commit | da9e11f28bab3c90107c3a730ddbfb57d18475ca (patch) | |
| tree | 10b98b83c5b551bf7cccf71edb4b41c6fb40228d /cmd/seaweedfs-mount/main.go | |
| parent | 1a36b03ed79a12e9b9db5954167ce825222f3d83 (diff) | |
| download | seaweedfs-csi-driver-da9e11f28bab3c90107c3a730ddbfb57d18475ca.tar.xz seaweedfs-csi-driver-da9e11f28bab3c90107c3a730ddbfb57d18475ca.zip | |
Optimization: Reduce unnecessary logic of seaweedfs-mount
Diffstat (limited to 'cmd/seaweedfs-mount/main.go')
| -rw-r--r-- | cmd/seaweedfs-mount/main.go | 21 |
1 files changed, 0 insertions, 21 deletions
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")) |
