mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-15 17:46:55 +00:00
rework /pubmsg to use MessageTargetType
This commit is contained in:
parent
ae1306387e
commit
898057cc20
3 changed files with 58 additions and 27 deletions
|
@ -127,7 +127,8 @@ func SetupServerAndHandle(config *Config, tlsConfig *tls.Config, serveMux *http.
|
|||
serveMux = http.DefaultServeMux
|
||||
}
|
||||
serveMux.HandleFunc("/", sockServer.ServeHTTP)
|
||||
serveMux.HandleFunc("/pub", HBackendPublishRequest)
|
||||
serveMux.HandleFunc("/pubmsg", HBackendPublishRequest)
|
||||
serveMux.HandleFunc("/updatepub", HBackendUpdateAndPublish)
|
||||
}
|
||||
|
||||
// Handle a new websocket connection from a FFZ client.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue