2 Commits 3169918a50 ... 95215932e7

Author SHA1 Message Date
  blackwine 95215932e7 becoming a party pig 3 weeks ago
  blackwine 3169918a50 becoming a party pig 3 weeks ago
2 changed files with 17 additions and 0 deletions
  1. 2 0
      README.md
  2. 15 0
      rest.go

+ 2 - 0
README.md

@@ -9,6 +9,8 @@ Started from scratch as a simple idea that you can run demoparty
 from the CLI, as a network service or by pushing MIDI buttons and tuning
 from the CLI, as a network service or by pushing MIDI buttons and tuning
 knobs.
 knobs.
 
 
+Central point of the service is...
+
 Screenbar
 Screenbar
 ---------
 ---------
 
 

+ 15 - 0
rest.go

@@ -0,0 +1,15 @@
+package main
+
+import (
+ "log"
+ "net/http"
+)
+
+func put(url string) (resp *http.Response, err error) {
+	req, err := http.NewRequest("PUT", url, nil)
+	if err != nil {
+		log.Print(err)
+		return
+	}
+	return http.DefaultClient.Do(req)
+}