This commit is contained in:
Kameron Kenny 2019-06-25 10:45:37 -04:00
parent b5b2b8a883
commit b21576b333
2 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ function putJson() {
} }
}; };
req.open("PUT", "https://api.myjson.com/bins/k0abr", true); req.open("PUT", "https://api.myjson.com/bins/13hsch", true);
req.setRequestHeader("Content-type", "application/json"); req.setRequestHeader("Content-type", "application/json");
req.send(data); req.send(data);
@ -58,7 +58,7 @@ console.log(`getJson`);
} }
}; };
req.open("GET", "https://api.myjson.com/bins/k0abr", true); req.open("GET", "https://api.myjson.com/bins/13hsch", true);
req.send(); req.send();
} }

View File

@ -26,7 +26,7 @@ function putJson(data) {
} }
}; };
req.open("PUT", "https://api.myjson.com/bins/k0abr", true); req.open("PUT", "https://api.myjson.com/bins/13hsch", true);
req.setRequestHeader("Content-type", "application/json"); req.setRequestHeader("Content-type", "application/json");
req.send(data); req.send(data);
@ -43,7 +43,7 @@ function getJson(callback) {
} }
}; };
req.open("GET", "https://api.myjson.com/bins/k0abr", true); req.open("GET", "https://api.myjson.com/bins/13hsch", true);
req.send(); req.send();
} }