mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Move WebSocket API to it's own package and add websocket v4 endpoint (#5881)
This commit is contained in:
committed by
George Goldberg
parent
ca8b8d1245
commit
daca0d93f6
@@ -92,7 +92,6 @@ var BaseRoutes *Routes
|
||||
func InitRouter() {
|
||||
app.Srv.Router = mux.NewRouter()
|
||||
app.Srv.Router.NotFoundHandler = http.HandlerFunc(Handle404)
|
||||
app.Srv.WebSocketRouter = app.NewWebSocketRouter()
|
||||
}
|
||||
|
||||
func InitApi(full bool) {
|
||||
@@ -174,6 +173,7 @@ func InitApi(full bool) {
|
||||
InitBrand()
|
||||
InitCommand()
|
||||
InitStatus()
|
||||
InitWebSocket()
|
||||
|
||||
app.Srv.Router.Handle("/api/v4/{anything:.*}", http.HandlerFunc(Handle404))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user