diff options
Diffstat (limited to 'http.go')
| -rw-r--r-- | http.go | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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 } |
