mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 21:17:34 +00:00
remove parametter for fetch
This commit is contained in:
parent
e84cee8aca
commit
f0e8c1efb5
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user