mirror of https://github.com/yb/uptime-status
Fix API endpoint for GetMonitors function in uptimerobot.js
parent
2821fcc11d
commit
755a0850ea
|
@ -25,7 +25,7 @@ export async function GetMonitors(apikey, days) {
|
|||
custom_uptime_ranges: ranges.join('-'),
|
||||
};
|
||||
|
||||
const response = await axios.post('https://cors.status.org.cn/uptimerobot/v2/getMonitors', postdata, { timeout: 10000 });
|
||||
const response = await axios.post('https://api.uptimerobot.com/v2/getMonitors', postdata, { timeout: 10000 });
|
||||
if (response.data.stat !== 'ok') throw response.data.error;
|
||||
return response.data.monitors.map((monitor) => {
|
||||
|
||||
|
|
Loading…
Reference in New Issue