summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-10-31 14:15:36 -0500
committerJeff Carr <[email protected]>2024-10-31 14:15:36 -0500
commitb4ef8b76b1a92ef4da9fc0892c59a00f6f63a130 (patch)
tree590ccbbe8e0125514704b147e2a3891e5dd9aa3a /http.go
parent3c520003edb286deec57ce62c447373912787829 (diff)
runs again
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'http.go')
-rw-r--r--http.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/http.go b/http.go
index 2f4c688..fb697ff 100644
--- a/http.go
+++ b/http.go
@@ -57,19 +57,19 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
return
}
- if route == "/create" {
- log.Info("virtigo create starts here")
- fmt.Fprintln(w, "virtigo create starts here")
+ if route == "/import" {
+ log.Info("virtigo import starts here")
+ fmt.Fprintln(w, "virtigo import starts here")
result, err := create(w, r)
if err != nil {
- log.Info("virtigo create failed")
+ log.Info("virtigo import failed")
log.Info(result)
- fmt.Fprintln(w, "virtigo create failed")
+ fmt.Fprintln(w, "virtigo import failed")
fmt.Fprintln(w, result)
return
}
- log.Info("virtigo create ends here")
- fmt.Fprintln(w, "virtigo create ends here")
+ log.Info("virtigo import ends here")
+ fmt.Fprintln(w, "virtigo import ends here")
return
}