diff options
author | maride <maride@darknebu.la> | 2018-08-14 22:28:34 +0200 |
---|---|---|
committer | maride <maride@darknebu.la> | 2018-08-14 22:28:34 +0200 |
commit | 00c520f9653a72314a2e9ac2311e68421281688f (patch) | |
tree | dfc87f2cdb36f7b3cc0f8aee35eb93e745cc45d8 /src | |
parent | 6a66ed60af5ba83d3e9c064d41dbd1b7a0f23468 (diff) |
Use POST for logout
Diffstat (limited to 'src')
-rw-r--r-- | src/http.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http.go b/src/http.go index 1ddebe5..2f25a38 100644 --- a/src/http.go +++ b/src/http.go @@ -26,7 +26,7 @@ func runHTTPServer() (error) { r.HandleFunc("/files/{file}", fileHandler) r.HandleFunc("/login", loginGetHandler).Methods("GET") r.HandleFunc("/login", loginPostHandler).Methods("POST") - r.HandleFunc("/logout", logoutHandler).Methods("GET") + r.HandleFunc("/logout", logoutHandler).Methods("POST") r.HandleFunc("/api/getChallenges", getChallengesHandler).Methods("GET") address := fmt.Sprintf(":%d", *port) |