🐛 Yeah, fix bugs

This commit is contained in:
2025-02-21 23:35:52 +08:00
parent 65cb542985
commit a8dbcfdb05
3 changed files with 64 additions and 66 deletions

View File

@ -20,16 +20,15 @@ func MapAPIs(app *fiber.App, baseURL string) {
channels.Get("/me/available", listAvailableChannel)
channels.Get("/:channel", getChannel)
channels.Get("/:channel/me", getChannelIdentity)
channels.Put("/:channel/me", editChannelIdentity)
channels.Put("/:channel/me/notify", editChannelNotifyLevel)
channels.Delete("/:channel/me", deleteChannelIdentity)
channels.Post("/", createChannel)
channels.Post("/dm", createDirectChannel)
channels.Put("/:channelId", editChannel)
channels.Delete("/:channelId", deleteChannel)
channels.Get("/:channel/members", listChannelMembers)
channels.Get("/:channel/members/me", getChannelProfileOfMyself)
channels.Put("/:channel/members/me", editChannelProfileOfMyself)
channels.Put("/:channel/members/me/notify", editChannelNotifyLevelOfMyself)
channels.Post("/:channel/members", addChannelMember)
channels.Delete("/:channel/members/:memberId", removeChannelMember)