From 8ffae39cd303d487cf20177fab2f7b9aa29f1d77 Mon Sep 17 00:00:00 2001 From: Emile Date: Wed, 6 Nov 2024 19:24:02 +0100 Subject: commented out the delete battle stuff, as I want to test build --- src/battle.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/battle.go') 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) +// } +// } -- cgit 1.4.1