From 52324e269cffd2ef3e032b4d173b1e7c62e202bf Mon Sep 17 00:00:00 2001 From: Arzumify Date: Fri, 17 May 2024 20:53:27 +0100 Subject: [PATCH] Fixed broken URI --- templates/migrate.html | 2 +- templates/oauth.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/migrate.html b/templates/migrate.html index 640b561..41c18af 100644 --- a/templates/migrate.html +++ b/templates/migrate.html @@ -108,7 +108,7 @@ console.log("User:", userinfoData.name) console.log("Sub:", userinfoData.sub); document.getElementById("text").innerText = "Authenticating, " + userinfoData.name; - fetch("https://cat.hectabit.org/api/migrate", { + fetch("/api/migrate", { method: "POST", headers: { "Content-Type": "application/json" diff --git a/templates/oauth.html b/templates/oauth.html index 0e12ad5..fa1193e 100644 --- a/templates/oauth.html +++ b/templates/oauth.html @@ -122,7 +122,7 @@ preferreduser = getCookie("prefuser") } document.getElementById("text").innerText = "Authenticating, " + userinfoData.name; - fetch("https://cat.hectabit.org/api/oauth", { + fetch("/api/oauth", { method: "POST", headers: { "Content-Type": "application/json"