2 次代码提交 3169918a50 ... 95215932e7

作者 SHA1 备注 提交日期
  blackwine 95215932e7 becoming a party pig 3 周之前
  blackwine 3169918a50 becoming a party pig 3 周之前
共有 2 个文件被更改,包括 17 次插入0 次删除
  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
 knobs.
 
+Central point of the service is...
+
 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)
+}