Apuntando registro y login a localhost
This commit is contained in:
parent
bda91ab188
commit
9dcc8324a8
|
|
@ -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 })
|
||||
|
|
|
|||
|
|
@ -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 })
|
||||
|
|
|
|||
Loading…
Reference in New Issue