From 6bc5d2db8f8eefa0a75680b9e3953fde9b86f9be Mon Sep 17 00:00:00 2001 From: xhe Date: Wed, 20 Jul 2022 16:42:31 +0800 Subject: [PATCH] fix wrong API address It is written as `/commit` in the command line utils. Signed-off-by: xhe --- pkg/server/api/namespace.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/server/api/namespace.go b/pkg/server/api/namespace.go index a7c1944a..f62164f2 100644 --- a/pkg/server/api/namespace.go +++ b/pkg/server/api/namespace.go @@ -123,7 +123,7 @@ func (h *namespaceHttpHandler) HandleList(c *gin.Context) { func registerNamespace(group *gin.RouterGroup, logger *zap.Logger, mgrcfg *mgrcfg.ConfigManager, mgrns *mgrns.NamespaceManager) { h := &namespaceHttpHandler{logger, mgrcfg, mgrns} group.GET("/", h.HandleList) - group.POST("/commits", h.HandleCommit) + group.POST("/commit", h.HandleCommit) group.GET("/:namespace", h.HandleGetNamespace) group.PUT("/:namespace", h.HandleUpsertNamesapce) group.DELETE("/:namespace", h.HandleRemoveNamespace)