summaryrefslogtreecommitdiff
path: root/src/rhctl/web.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-09-24 18:48:29 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-09-24 18:48:29 (GMT)
commit2de6beb14b764a850933040c8970dedfd78158c8 (patch)
treedf7d523a1406e5b0cadec7dce8455b04e59a21e6 /src/rhctl/web.go
parentcb045546348fb04173d84e7c700f8674fbe1797c (diff)
added support for web-socket based interface
Diffstat (limited to 'src/rhctl/web.go')
-rw-r--r--src/rhctl/web.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rhctl/web.go b/src/rhctl/web.go
index 3c29c56..c83a28e 100644
--- a/src/rhctl/web.go
+++ b/src/rhctl/web.go
@@ -90,6 +90,8 @@ func WebInit(conf *Config, ctrl *SwitchControl) (web *WebInterface) {
rhdl.Printf("Web: will serving static files from '%s'", conf.Clients.Web.StaticDir)
http.Handle("/static/", http.StripPrefix("/static/", http.FileServer(http.Dir(conf.Clients.Web.StaticDir))))
}
+ http.Handle("/socket", webHandler{ctrl, webSocketHandler})
+
http.Handle("/api/state", webHandler{ctrl, webGetStateHandler})
// TODO: add other handler