add join role endpoint and persistency for hubs
This commit is contained in:
@@ -72,6 +72,7 @@ func main() {
|
||||
http.HandleFunc("PATCH /hub/icon", withCORS(httpRequest.HandleHubSetIcon))
|
||||
http.HandleFunc("GET /hub/icon", withCORS(httpRequest.HandleGetHubIcon))
|
||||
http.HandleFunc("PATCH /hub/bg", withCORS(httpRequest.HandleHubSetBg))
|
||||
http.HandleFunc("PATCH /hub/joinrole", withCORS(httpRequest.HandleSetHubJoinRole))
|
||||
http.HandleFunc("GET /hub/bg", withCORS(httpRequest.HandleGetHubBg))
|
||||
http.HandleFunc("DELETE /hub", withCORS(httpRequest.HandleHubRemove))
|
||||
http.HandleFunc("PATCH /hub/usercolorallowed", withCORS(httpRequest.HandleHubToggleUserColorAllowed))
|
||||
@@ -94,6 +95,8 @@ func main() {
|
||||
http.HandleFunc("PATCH /hub/channel/roles/view", withCORS(httpRequest.HandleChannelSetPermittedVisibleRole))
|
||||
http.HandleFunc("PATCH /hub/channel/roles/send", withCORS(httpRequest.HandleChannelSetPermittedSendRole))
|
||||
http.HandleFunc("PATCH /hub/channel/roles/history", withCORS(httpRequest.HandleChannelSetPermittedHistoryRole))
|
||||
http.HandleFunc("PATCH /hub/channel/icon", withCORS(httpRequest.HandleChannelSetIcon))
|
||||
http.HandleFunc("GET /hub/channel/icon", withCORS(httpRequest.HandleGetChannelIcon))
|
||||
|
||||
http.HandleFunc("POST /connection/message", withCORS(httpRequest.HandleDm))
|
||||
http.HandleFunc("GET /ws", wsServer.ServeWsConnection)
|
||||
|
||||
Reference in New Issue
Block a user