remove parametter for fetch

This commit is contained in:
Linventif 2023-09-23 02:35:51 +02:00
parent e84cee8aca
commit f0e8c1efb5

View File

@ -42,10 +42,10 @@ local function sendHTTP(params)
})
end
function gmInte.fetch(endpoint, parameters, onSuccess)
function gmInte.fetch(endpoint, onSuccess)
gmInte.log("Fetching " .. endpoint, true)
sendHTTP({
endpoint = endpoint .. "?" .. util.TableToJSON(parameters) .. gmInte.defParams,
endpoint = endpoint,
method = "GET",
success = onSuccess
})