Apuntando registro y login a localhost

This commit is contained in:
Tatiana Villa Ema 2026-01-22 22:17:35 +01:00
parent bda91ab188
commit 9dcc8324a8
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ async function login() {
} }
try { try {
const response = await fetch("http://aplicacionesdevanguardia.es:8080/auth/login", { const response = await fetch("http://localhost:8080/auth/login", {
method: "POST", method: "POST",
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
body: JSON.stringify({ email, password }) body: JSON.stringify({ email, password })

View File

@ -14,7 +14,7 @@
} }
try { try {
const response = await fetch("http://aplicacionesdevanguardia.es:8080/auth/register", { const response = await fetch("http://localhost:8080/auth/register", {
method: "POST", method: "POST",
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
body: JSON.stringify({ nombre, email, password }) body: JSON.stringify({ nombre, email, password })