You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ab...@apache.org on 2023/10/24 11:31:12 UTC
[incubator-devlake] branch main updated: fix(webhook): remve / in paths, avoid 307 (#6322)
This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 1330c76b5 fix(webhook): remve / in paths, avoid 307 (#6322)
1330c76b5 is described below
commit 1330c76b5adf0f55ccb785a278f164aea7aab6ac
Author: Lynwee <li...@merico.dev>
AuthorDate: Tue Oct 24 19:31:08 2023 +0800
fix(webhook): remve / in paths, avoid 307 (#6322)
---
backend/server/api/router.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/server/api/router.go b/backend/server/api/router.go
index eced9d553..be2e0f39a 100644
--- a/backend/server/api/router.go
+++ b/backend/server/api/router.go
@@ -77,7 +77,7 @@ func RegisterRouter(r *gin.Engine, basicRes context.BasicRes) {
// api keys api
r.GET("/api-keys", apikeys.GetApiKeys)
r.POST("/api-keys", apikeys.PostApiKey)
- r.PUT("/api-keys/:apiKeyId/", apikeys.PutApiKey)
+ r.PUT("/api-keys/:apiKeyId", apikeys.PutApiKey)
r.DELETE("/api-keys/:apiKeyId", apikeys.DeleteApiKey)
// mount all api resources for all plugins