From 4c23d49a22284bbbf303378dd22ca736090e3103 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sun, 17 Oct 2021 12:54:33 +0200 Subject: [PATCH] id comes from muxVars now --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")