X-Git-Url: http://git.pjr.cc/?p=goDBhammer.git;a=blobdiff_plain;f=src%2Fwebconnector.go;h=fa814f3badd0bbf43c16150c697f2fd0a5546b44;hp=e7436d3df59f48c9ba60803f5663e6e80c32997b;hb=c9ff4815a53c91a582619a41e7952571c02f6075;hpb=ff6679f750e301016b3e070d7d6ffa41048004b8 diff --git a/src/webconnector.go b/src/webconnector.go index e7436d3..fa814f3 100644 --- a/src/webconnector.go +++ b/src/webconnector.go @@ -135,7 +135,8 @@ func main() bc := benchcontroller.CreateController(); go benchcontroller.MainLoop(bc, comout, comin); - http.Handle("/", http.HandlerFunc(ServerResponder)); + http.Handle("/", http.FileServer("./web", "/web")); + http.Handle("/json", http.HandlerFunc(ServerResponder)); err := http.ListenAndServe(":22222", nil); if err != nil { panic("ListenAndServe: ", err.String())