From c61e99f13dbe75c8e1510db25e43d0b9b9653fa0 Mon Sep 17 00:00:00 2001 From: popstk Date: Fri, 3 Feb 2023 19:34:53 +0800 Subject: [PATCH] fix update tag router error --- handler/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/router.go b/handler/router.go index 808c6a2..8bbedd6 100644 --- a/handler/router.go +++ b/handler/router.go @@ -218,7 +218,7 @@ func (s *Server) RegisterRouters() { tagRouter.GET("", s.wrapHandler(s.TagHandler.ListTags)) tagRouter.GET("/:id", s.wrapHandler(s.TagHandler.GetTagByID)) tagRouter.POST("", s.wrapHandler(s.TagHandler.CreateTag)) - tagRouter.PUT("", s.wrapHandler(s.TagHandler.UpdateTag)) + tagRouter.PUT("/:id", s.wrapHandler(s.TagHandler.UpdateTag)) tagRouter.DELETE("/:id", s.wrapHandler(s.TagHandler.DeleteTag)) } {