From 7442597a3c19e4e7a1c02ff491eaaad92bac446b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sun, 18 Jan 2026 06:12:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=8E=AF=E5=A2=83=E5=8D=B8=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/route/http.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/route/http.go b/internal/route/http.go index 53d05ab8..5892ed70 100644 --- a/internal/route/http.go +++ b/internal/route/http.go @@ -315,8 +315,8 @@ func (route *Http) Register(r *chi.Mux) { r.Get("/types", route.environment.Types) r.Get("/list", route.environment.List) r.Post("/install", route.environment.Install) - r.Get("/uninstall", route.environment.Uninstall) - r.Put("/update", route.environment.Update) + r.Post("/uninstall", route.environment.Uninstall) + r.Post("/update", route.environment.Update) r.Get("/is_installed", route.environment.IsInstalled) r.Route("/go", func(r chi.Router) { r.Post("/{slug}/set_cli", route.environmentGo.SetCli)