diff options
author | Emile <git@emile.space> | 2024-11-06 19:24:02 +0100 |
---|---|---|
committer | Emile <git@emile.space> | 2024-11-06 19:24:02 +0100 |
commit | 8ffae39cd303d487cf20177fab2f7b9aa29f1d77 (patch) | |
tree | 3b7f4da94e801ee23149d60e0337e08a3e478336 /src/battle.go | |
parent | 566f2e1af45c5a9809dc947f858cdd4d49c48e11 (diff) |
commented out the delete battle stuff, as I want to test build
Diffstat (limited to 'src/battle.go')
-rw-r--r-- | src/battle.go | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/battle.go b/src/battle.go index b7584eb..e30cebd 100644 --- a/src/battle.go +++ b/src/battle.go @@ -1219,12 +1219,13 @@ func battleRunHandler(w http.ResponseWriter, r *http.Request) { } // delete a battle -func battleDeleteHandler(w http.ResponseWriter, r *http.Request) { - switch r.Method { - case "DELETE": - - http.Redirect(w, r, fmt.Sprintf("/battle?res=%s", battleid, msg), http.StatusSeeOther) - default: - http.Redirect(w, r, "/", http.StatusMethodNotAllowed) - } -} +// TODO(emile): finish implementing the deletion of battles +// func battleDeleteHandler(w http.ResponseWriter, r *http.Request) { +// switch r.Method { +// case "DELETE": + +// http.Redirect(w, r, fmt.Sprintf("/battle?res=%s", battleid, msg), http.StatusSeeOther) +// default: +// http.Redirect(w, r, "/", http.StatusMethodNotAllowed) +// } +// } |