Fixed broken URI

This commit is contained in:
Tracker-Friendly 2024-05-17 20:53:27 +01:00
parent 3a31511c76
commit 52324e269c
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@
console.log("User:", userinfoData.name) console.log("User:", userinfoData.name)
console.log("Sub:", userinfoData.sub); console.log("Sub:", userinfoData.sub);
document.getElementById("text").innerText = "Authenticating, " + userinfoData.name; document.getElementById("text").innerText = "Authenticating, " + userinfoData.name;
fetch("https://cat.hectabit.org/api/migrate", { fetch("/api/migrate", {
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/json" "Content-Type": "application/json"

View File

@ -122,7 +122,7 @@
preferreduser = getCookie("prefuser") preferreduser = getCookie("prefuser")
} }
document.getElementById("text").innerText = "Authenticating, " + userinfoData.name; document.getElementById("text").innerText = "Authenticating, " + userinfoData.name;
fetch("https://cat.hectabit.org/api/oauth", { fetch("/api/oauth", {
method: "POST", method: "POST",
headers: { headers: {
"Content-Type": "application/json" "Content-Type": "application/json"