diff --git a/main.go b/main.go index 8eab99b..abdbb5b 100644 --- a/main.go +++ b/main.go @@ -5,8 +5,11 @@ import ( ) func main() { - http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { - w.Write([]byte("Hello, World!")) + http.HandleFunc("GET /", func(w http.ResponseWriter, r *http.Request) { + w.Write([]byte("This was a GET request!")) + }) + http.HandleFunc("POST /", func(w http.ResponseWriter, r *http.Request) { + w.Write([]byte("This was a POST request!")) }) http.ListenAndServe(":8000", nil) }