id comes from muxVars now
This commit is contained in:
4
main.go
4
main.go
@@ -280,7 +280,7 @@ func deletePlayerTrack(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
id := r.Form.Get("id")
|
id := mux.Vars(r)["id"]
|
||||||
authCode := r.Form.Get("authcode")
|
authCode := r.Form.Get("authcode")
|
||||||
|
|
||||||
if id == "" || authCode == "" || !utils.AuthCodeRegEx.MatchString(authCode) {
|
if id == "" || authCode == "" || !utils.AuthCodeRegEx.MatchString(authCode) {
|
||||||
@@ -331,7 +331,7 @@ func postPlayerTrack(w http.ResponseWriter, r *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
id := r.Form.Get("id")
|
id := mux.Vars(r)["id"]
|
||||||
authCode := r.Form.Get("authcode")
|
authCode := r.Form.Get("authcode")
|
||||||
shareCode := r.Form.Get("sharecode")
|
shareCode := r.Form.Get("sharecode")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user