summaryrefslogtreecommitdiffstats
path: root/wsapi/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'wsapi/api.go')
-rw-r--r--wsapi/api.go21
1 files changed, 21 insertions, 0 deletions
diff --git a/wsapi/api.go b/wsapi/api.go
new file mode 100644
index 000000000..2d4c99674
--- /dev/null
+++ b/wsapi/api.go
@@ -0,0 +1,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()
+}