Update api location

This commit is contained in:
Julian
2022-02-16 17:05:13 +01:00
parent 5a4187abfa
commit a0312befe9

View File

@@ -297,7 +297,7 @@
}; };
var counter = async function() { var counter = async function() {
let res = await fetch("https://localhost:5001/family/familycount", { let res = await fetch("http://rismer.de:9999/family/familycount", {
method: "GET", method: "GET",
headers: { headers: {
'Content-Type': 'application/json' 'Content-Type': 'application/json'
@@ -473,7 +473,7 @@ document.getElementById("js-submitbtn").addEventListener("click", async function
console.log("Request: " + JSON.stringify(family)); console.log("Request: " + JSON.stringify(family));
const response = await fetch("https://localhost:5001/family", { const response = await fetch("http://rismer.de:9999/family", {
method: 'POST', // *GET, POST, PUT, DELETE, etc. method: 'POST', // *GET, POST, PUT, DELETE, etc.
mode: 'cors', // no-cors, *cors, same-origin mode: 'cors', // no-cors, *cors, same-origin
cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached