Denis V. Dedkov пре 9 година
родитељ
комит
c676ccf354
1 измењених фајлова са 1 додато и 3 уклоњено
  1. 1 3
      examples/noolite-web/noolite-web.go

+ 1 - 3
examples/noolite-web/noolite-web.go

@@ -80,9 +80,7 @@ func main() {
 	defer n.Close()
 
 	http.HandleFunc("/noolite/", func(w http.ResponseWriter, r *http.Request) {
-		command, channel, value, red, green, blue := parseParams(r.URL.Path[1:])
-
-		err := sendCommand(n, command, channel, value, red, green, blue)
+		err := sendCommand(n, parseParams(r.URL.Path[1:]))
 
 		if err != nil {
 			fmt.Fprintf(w, "{\"error\": %q}", err)