summaryrefslogtreecommitdiff
path: root/src/rhctl/web.go
diff options
context:
space:
mode:
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