From 9dcc8324a8594262b9d161f6c89710a4ce9e4516 Mon Sep 17 00:00:00 2001 From: Tatiana Villa Ema Date: Thu, 22 Jan 2026 22:17:35 +0100 Subject: [PATCH] Apuntando registro y login a localhost --- js/login.js | 2 +- js/register.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 })