🧑‍💻 Add Kernel API for publish binary message broadcast (#13681)

* 🎨 Broadcast supports publishing binary messages

* 🎨 Add size field to `PublishMessage`
This commit is contained in:
Yingyi / 颖逸 2024-12-31 17:36:53 +08:00 committed by GitHub
parent adc819973b
commit 3807f8386c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 176 additions and 0 deletions

View file

@ -457,6 +457,7 @@ func ServeAPI(ginServer *gin.Engine) {
ginServer.Handle("POST", "/api/network/forwardProxy", model.CheckAuth, model.CheckAdminRole, forwardProxy)
ginServer.Handle("GET", "/ws/broadcast", model.CheckAuth, model.CheckAdminRole, broadcast)
ginServer.Handle("POST", "/api/broadcast/publish", model.CheckAuth, model.CheckAdminRole, broadcastPublish)
ginServer.Handle("POST", "/api/broadcast/postMessage", model.CheckAuth, model.CheckAdminRole, postMessage)
ginServer.Handle("POST", "/api/broadcast/getChannels", model.CheckAuth, model.CheckAdminRole, getChannels)
ginServer.Handle("POST", "/api/broadcast/getChannelInfo", model.CheckAuth, model.CheckAdminRole, getChannelInfo)