This commit is contained in:
2026-01-03 15:46:06 +02:00
parent 6ce7edd194
commit d64645599d
9 changed files with 643 additions and 307 deletions

View File

@@ -12,7 +12,7 @@ async function UserLogin() {
const p = document.getElementById("password").value;
try {
const r = await fetch("/api/users/login", {
const r = await fetch("/api/auth/login", {
method: "POST",
credentials: "include",
headers: { "Content-Type": "application/json" },
@@ -35,7 +35,7 @@ async function UserLogin() {
async function UserLogout() {
try {
await fetch("/api/users/logout", { method: "POST", credentials: "include" });
await fetch("/api/auth/logout", { method: "POST", credentials: "include" });
accessToken = "";
alert("logged out");
} catch (err) {