From f0e8c1efb58006554ecb93dd1182607b89627710 Mon Sep 17 00:00:00 2001 From: Linventif Date: Sat, 23 Sep 2023 02:35:51 +0200 Subject: [PATCH] remove parametter for fetch --- lua/gmod_integration/shared/sh_http.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/gmod_integration/shared/sh_http.lua b/lua/gmod_integration/shared/sh_http.lua index c81990b..63a63be 100644 --- a/lua/gmod_integration/shared/sh_http.lua +++ b/lua/gmod_integration/shared/sh_http.lua @@ -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 })