summaryrefslogtreecommitdiff
path: root/create.go
diff options
context:
space:
mode:
Diffstat (limited to 'create.go')
-rw-r--r--create.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/create.go b/create.go
index 9752bb2..1e84b9a 100644
--- a/create.go
+++ b/create.go
@@ -3,19 +3,16 @@ package main
import (
"errors"
"fmt"
- "io/ioutil"
"math/rand"
- "net/http"
"time"
- "github.com/google/uuid"
pb "go.wit.com/lib/protobuf/virtbuf"
- "go.wit.com/log"
)
// attempts to create a new virtual machine
-func create(w http.ResponseWriter, r *http.Request) (string, error) {
+/*
+func oldcreate(w http.ResponseWriter, r *http.Request) (string, error) {
msg, err := ioutil.ReadAll(r.Body) // Read the body as []byte
if err != nil {
result := fmt.Sprintf("ReadAll() error =", err)
@@ -84,6 +81,7 @@ func create(w http.ResponseWriter, r *http.Request) (string, error) {
fmt.Fprintln(w, "START=OK")
return result, nil
}
+*/
// for now, because sometimes this should write to stdout and
// sometimes to http socket, it returns a string