summaryrefslogtreecommitdiffstats
path: root/wsapi/api.go
blob: b7a06e42ece42060367e2be588f6412c4da44cd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.

package wsapi

import (
	"github.com/mattermost/platform/app"
)

func InitRouter() {
	app.Srv.WebSocketRouter = app.NewWebSocketRouter()
}

func InitApi() {
	InitUser()
	InitSystem()
	InitStatus()
	InitWebrtc()

	app.HubStart()
}