diff options
author | Christian Pointner <equinox@helsinki.at> | 2016-09-24 18:48:29 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2016-09-24 18:48:29 (GMT) |
commit | 2de6beb14b764a850933040c8970dedfd78158c8 (patch) | |
tree | df7d523a1406e5b0cadec7dce8455b04e59a21e6 /src/rhctl/web.go | |
parent | cb045546348fb04173d84e7c700f8674fbe1797c (diff) |
added support for web-socket based interface
Diffstat (limited to 'src/rhctl/web.go')
-rw-r--r-- | src/rhctl/web.go | 2 |
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 |