about summary refs log tree commit diff
path: root/main.go
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2020-06-10 15:26:23 +0200
committerEmile <hanemile@protonmail.com>2020-06-10 15:26:23 +0200
commitd820006a814f808aaeae2e1bdff4ce4ef4605fa0 (patch)
treeafbab2314651caac7155be8560fe57bf797344f7 /main.go
parentcfff58317e4b7e58c516fe146c6d92849d5ab3fc (diff)
reset only via POST request
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
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