1
0
Fork 0
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:
Kane York 2015-10-26 10:23:53 -07:00
parent ae1306387e
commit 898057cc20
3 changed files with 58 additions and 27 deletions

View file

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