diff --git a/noolite-cli.go b/noolite-cli.go index 89ab941..d783e3c 100644 --- a/noolite-cli.go +++ b/noolite-cli.go @@ -103,8 +103,6 @@ func main() { } else { http.HandleFunc("/noolite/", func(w http.ResponseWriter, r *http.Request) { command, channel, value, red, green, blue := parseParams(r.URL.Path[1:]) - fmt.Fprintf(w, "Command: %q\n", command) - fmt.Fprintf(w, "Channel: %d\n", channel) err := sendCommand(command, channel, value, red, green, blue) @@ -113,6 +111,8 @@ func main() { } }) - panic(http.ListenAndServe(fmt.Sprintf(":%d", *http_port), nil)) + fs := http.FileServer(http.Dir("/var/www/static")) + + panic(http.ListenAndServe(fmt.Sprintf(":%d", *http_port), fs)) } }