diff --git a/js/login.js b/js/login.js index ab684c8..abb4330 100644 --- a/js/login.js +++ b/js/login.js @@ -13,7 +13,7 @@ async function login() { } try { - const response = await fetch("http://aplicacionesdevanguardia.es:8080/auth/login", { + const response = await fetch("http://localhost:8080/auth/login", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ email, password }) diff --git a/js/register.js b/js/register.js index 1263e86..36547c6 100644 --- a/js/register.js +++ b/js/register.js @@ -14,7 +14,7 @@ } try { - const response = await fetch("http://aplicacionesdevanguardia.es:8080/auth/register", { + const response = await fetch("http://localhost:8080/auth/register", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ nombre, email, password })