From a0312befe9f49af5fd623536853a9bb29682eaf3 Mon Sep 17 00:00:00 2001 From: Julian Date: Wed, 16 Feb 2022 17:05:13 +0100 Subject: [PATCH] Update api location --- js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/main.js b/js/main.js index 4fdb10b..65e0fae 100644 --- a/js/main.js +++ b/js/main.js @@ -297,7 +297,7 @@ }; 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", headers: { 'Content-Type': 'application/json' @@ -473,7 +473,7 @@ document.getElementById("js-submitbtn").addEventListener("click", async function 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. mode: 'cors', // no-cors, *cors, same-origin cache: 'no-cache', // *default, no-cache, reload, force-cache, only-if-cached