From d820006a814f808aaeae2e1bdff4ce4ef4605fa0 Mon Sep 17 00:00:00 2001 From: Emile Date: Wed, 10 Jun 2020 15:26:23 +0200 Subject: reset only via POST request --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') 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 -- cgit 1.4.1