Skip to content

Commit

Permalink
Revert code to the main branch version
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanasis Politis committed Mar 25, 2023
1 parent 3d06e71 commit 8ca888f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,5 @@ func main() {
fmt.Fprintf(w, "Hello, %s!\n", reversed)
})

http.HandleFunc("/reverse_2", func(w http.ResponseWriter, r *http.Request) {
reversed, err := reverser.Reverse(r.Context(), r.URL.Query().Get("name"))
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
}
fmt.Fprintf(w, "Hello, %s!\n", reversed)
})

http.Serve(lis, nil)
}

0 comments on commit 8ca888f

Please sign in to comment.