Use default uptimerobot url

This commit is contained in:
Perflyst 2021-04-27 19:55:45 +02:00 committed by GitHub
parent 17e268574b
commit e2d7c7dd6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,7 +34,7 @@ spawn do
page = 1 page = 1
loop do loop do
begin begin
client = HTTP::Client.new(URI.parse("https://uptime.invidious.io")) client = HTTP::Client.new(URI.parse("https://stats.uptimerobot.com/89VnzSKAn"))
client.connect_timeout = 10.seconds client.connect_timeout = 10.seconds
client.read_timeout = 10.seconds client.read_timeout = 10.seconds
response = JSON.parse(client.get("/api/getMonitorList/89VnzSKAn?page=#{page}").body) response = JSON.parse(client.get("/api/getMonitorList/89VnzSKAn?page=#{page}").body)