summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-30 18:09:54 -0500
committerJeff Carr <[email protected]>2024-10-30 18:09:54 -0500
commiteacf3b8bef9801126c5693660acc2d03e3664025 (patch)
tree10767cfa7fedabcb77383cb556146fcdfac2db3b /http.go
parentbf52632cb79e91703079765cd8a85fc9f4098e92 (diff)
events is now c.E
Signed-off-by: Jeff Carr <[email protected]>
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
}