summaryrefslogtreecommitdiffstats
path: root/wsapi/api.go
blob: 2d4c996740b98fade0f4e8f097ae426d9202eec0 (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 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()
}