ver2 / Js.js.txt
Karmashek's picture
Upload 4 files
ca8db7a verified
const response = await fetch("http://your-api/login", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ username, password })
});