diff --git a/check.lua b/check.lua index aba41f2..5548fc5 100644 --- a/check.lua +++ b/check.lua @@ -22,7 +22,7 @@ check = function(data) send:push(result) return false end - result.body, result.status = http.request(tostring(data.proxy) .. "/get/https://itch.io/api/1/x/wharf/latest?target=" .. tostring(data.target) .. "&channel_name=" .. tostring(data.channel)) + result.body, result.status = http.request(tostring(data.proxy) .. "/get/https://api.itch.io/wharf/latest?target=" .. tostring(data.target) .. "&channel_name=" .. tostring(data.channel)) end if not (result.body) then result.message = "socket.http.request error: " .. tostring(result.status) diff --git a/check.moon b/check.moon index 638413f..d11fd99 100644 --- a/check.moon +++ b/check.moon @@ -16,7 +16,7 @@ check = (data) -> result.message = "'target' or 'url' must be defined!" send\push result return false - result.body, result.status = http.request "#{data.proxy}/get/https://itch.io/api/1/x/wharf/latest?target=#{data.target}&channel_name=#{data.channel}" + result.body, result.status = http.request "#{data.proxy}/get/https://api.itch.io/wharf/latest?target=#{data.target}&channel_name=#{data.channel}" unless result.body result.message = "socket.http.request error: #{result.status}"