🚚 Move API path

This commit is contained in:
LittleSheep 2024-06-08 23:44:26 +08:00
parent c9d3de0022
commit bfd0c5e469

View File

@ -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)