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,14 +12,14 @@ btn_prot.onclick = async () => {
async function UserLogout() {
accessToken = "";
await fetch("/api/users/logout", { method: "POST", credentials: "include" });
await fetch("/api/auth/logout", { method: "POST", credentials: "include"});
};
async function UserLogin() {
const u = log_user.value,
p = log_pass.value;
const r = await fetch("/api/users/login", {
const r = await fetch("/api/auth/login", {
method: "POST",
credentials: "include",
headers: { "Content-Type": "application/json" },