id comes from muxVars now

This commit is contained in:
2021-10-17 12:54:33 +02:00
parent f9d7224479
commit 4c23d49a22

View File

@@ -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")