diff --git a/pkg/server/startup.go b/pkg/server/startup.go index db022a6..ea453ea 100644 --- a/pkg/server/startup.go +++ b/pkg/server/startup.go @@ -80,7 +80,7 @@ func NewServer() { channels.Delete("/:channelId", authMiddleware, deleteChannel) channels.Get("/:channel/members", listChannelMembers) - channels.Put("/:channel/members", authMiddleware, editChannelMembership) + channels.Put("/:channel/members/me", authMiddleware, editChannelMembership) channels.Get("/:channel/members/me", authMiddleware, getMyChannelMembership) channels.Post("/:channel/members", authMiddleware, addChannelMember) channels.Post("/:channel/members/me", authMiddleware, joinChannel)