diff --git a/server.go b/server.go index 31b8895..4e0e039 100644 --- a/server.go +++ b/server.go @@ -63,6 +63,10 @@ func main() { /* Define server routes */ + http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { + w.WriteHeader(http.StatusOK) + w.Write([]byte("Hello, World! From Caravan.")) + }) http.HandleFunc("/read-object", func(w http.ResponseWriter, r *http.Request) { if r.Method != http.MethodPost { http.Error(w, "Only POST method is allowed", http.StatusMethodNotAllowed)