Skip to content

Commit

Permalink
fix wrong API address
Browse files Browse the repository at this point in the history
It is written as `/commit` in the command line utils.

Signed-off-by: xhe <xw897002528@gmail.com>
  • Loading branch information
xhebox committed Jul 20, 2022
1 parent 3b47695 commit 6bc5d2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/server/api/namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6bc5d2d

Please sign in to comment.