const API_URL = "https://backend.laundryweb.altafcreator.com" async function login() { const field = document.getElementById("pwfield"); const response = await fetch(`${API_URL}/admin_login`, { method: "POST", credentials: "include", headers: { "Content-Type": "application/json" }, body: `{"password": "${field.value}"}`, }); } async function checkLoginStatus() { const response = await fetch(`${API_URL}/admin_check`, { method: "POST", credentials: "include" }); console.log(response); }