summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
Diffstat (limited to 'http.go')
-rw-r--r--http.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/http.go b/http.go
index a6092a2..971c906 100644
--- a/http.go
+++ b/http.go
@@ -58,7 +58,18 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
}
if route == "/create" {
- create(w, r)
+ log.Info("virtigo create starts here")
+ fmt.Fprintln(w, "virtigo create starts here")
+ result, err := create(w, r)
+ if err != nil {
+ log.Info("virtigo create failed")
+ log.Info(result)
+ fmt.Fprintln(w, "virtigo create failed")
+ fmt.Fprintln(w, result)
+ return
+ }
+ log.Info("virtigo create ends here")
+ fmt.Fprintln(w, "virtigo create ends here")
return
}