diff --git a/lua/gmod_integration/client/cl_gui_link.lua b/lua/gmod_integration/client/cl_gui_link.lua index be9d8e9..968e140 100644 --- a/lua/gmod_integration/client/cl_gui_link.lua +++ b/lua/gmod_integration/client/cl_gui_link.lua @@ -44,7 +44,7 @@ function gmInte.openVerifPopup() local button = vgui.Create("DButton") button:SetText("Refresh Verification") button.DoClick = function() - gmInte.http.get("/players/" .. LocalPlayer():SteamID64(), function(code, body) + gmInte.http.get("/users/" .. LocalPlayer():SteamID64(), function(code, body) gmInte.SendNet("verifyMe") frame:Close() end, diff --git a/lua/gmod_integration/shared/sh_http.lua b/lua/gmod_integration/shared/sh_http.lua index 96a7ab7..5f7aaf8 100644 --- a/lua/gmod_integration/shared/sh_http.lua +++ b/lua/gmod_integration/shared/sh_http.lua @@ -14,7 +14,7 @@ local function getAPIURL(endpoint) if (SERVER) then url = url .. "/servers/" .. gmInte.config.id else - if (string.sub(endpoint, 1, 8) == "/players" || string.sub(endpoint, 1, 7) == "/errors") then + if (string.sub(endpoint, 1, 8) == "/users") then return url .. endpoint end