From 3b05df228bda0052f75d98a3552f6733526bc263 Mon Sep 17 00:00:00 2001 From: zc Date: Sun, 14 Apr 2024 13:53:08 +0800 Subject: [PATCH] fix --- core/handler/server/route.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/handler/server/route.go b/core/handler/server/route.go index 8e0b667..875c3c5 100644 --- a/core/handler/server/route.go +++ b/core/handler/server/route.go @@ -62,7 +62,7 @@ func Handler(middlewares chi.Middlewares) http.Handler { r.Post("/", workflowCreate(workflowSrv)) r.Get("/", workflowList(workflowSrv)) r.Get("/{namespace}", workflowList(workflowSrv)) - r.Post("/{namespace}", workflowDelete(workflowSrv)) + r.Delete("/{namespace}", workflowDelete(workflowSrv)) r.Route("/{namespace}/{name}", func(r chi.Router) { r.Get("/", workflowInfo(workflowSrv)) r.Put("/", workflowUpdate(workflowSrv))