From 5bf854b275fb8ee3b730b435ffb703f25305ee99 Mon Sep 17 00:00:00 2001 From: ras0q Date: Sun, 14 Jan 2024 18:01:51 +0900 Subject: [PATCH] :bug: fix group endpoints typo --- router/router.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/router/router.go b/router/router.go index 8cb18fcc..9855d1f1 100644 --- a/router/router.go +++ b/router/router.go @@ -82,8 +82,8 @@ func (h *Handlers) SetupRoute() *echo.Echo { // グループ管理者権限が必要 groupsAPIWithAdminAuth := groupsAPI.Group("", h.GroupAdminsMiddleware) { - groupsAPIWithAdminAuth.PUT("/:groupid/members/:userid", h.HandleUpdateGroup) - groupsAPIWithAdminAuth.DELETE("/:groupid/members/:userid", h.HandleDeleteGroup) + groupsAPIWithAdminAuth.PUT("/:groupid", h.HandleUpdateGroup) + groupsAPIWithAdminAuth.DELETE("/:groupid", h.HandleDeleteGroup) } }