diff --git a/main.go b/main.go index 594594b..8f89f23 100644 --- a/main.go +++ b/main.go @@ -280,7 +280,7 @@ func deletePlayerTrack(w http.ResponseWriter, r *http.Request) { return } - id := r.Form.Get("id") + id := mux.Vars(r)["id"] authCode := r.Form.Get("authcode") if id == "" || authCode == "" || !utils.AuthCodeRegEx.MatchString(authCode) { @@ -331,7 +331,7 @@ func postPlayerTrack(w http.ResponseWriter, r *http.Request) { return } - id := r.Form.Get("id") + id := mux.Vars(r)["id"] authCode := r.Form.Get("authcode") shareCode := r.Form.Get("sharecode")