about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--main.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 03db86c..4887b79 100644
--- a/README.md
+++ b/README.md
@@ -2,4 +2,4 @@
 
 A simple http logger logging all requests to the http server that is exposed.
 
-reset all by sending a request to `/resetall`
+reset all by sending a POST request to `/resetall`
diff --git a/main.go b/main.go
index fcd69a8..c85df46 100644
--- a/main.go
+++ b/main.go
@@ -22,7 +22,7 @@ func main() {
 	// defin the gorilla/mux router with a pathprefix on / routing all requests
 	// to the indexHandler function
 	r := mux.NewRouter()
-	r.HandleFunc("/resetall", resetHandler)
+	r.HandleFunc("/resetall", resetHandler).Methods("POST")
 	r.PathPrefix("/").HandlerFunc(indexHandler)
 
 	// define and start the http server