Skip to content

Commit c27468b

Browse files
committed
url en vista de pedidos corregida
1 parent ff97283 commit c27468b

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

Frontend/resources/views/pedidosviews/PedidosClientes/create.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
9393
async function cargarProductos() {
9494
try {
95-
const response = await fetch('http://localhost:8080/productos');
95+
const response = await fetch('http://32.193.167.191:8080/productos');
9696
const data = await response.json();
9797
listaProductosGlobal = data.map(p => ({
9898
id: p.id_PRODUCTO || p.idProducto || p["Id Producto:"],

Frontend/resources/views/pedidosviews/PedidosClientes/edit.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
async function inicializarVista() {
130130
try {
131131
console.log("Iniciando carga de productos desde Java...");
132-
const response = await fetch('http://localhost:8080/productos');
132+
const response = await fetch('http://32.193.167.191:8080/productos');
133133
if (!response.ok) throw new Error("Fallo al conectar con Java");
134134
135135
const data = await response.json();

Frontend/resources/views/pedidosviews/PedidosClientes/index-admin.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268
269269
async function cargarProductosDesdeJava() {
270270
try {
271-
const response = await fetch('http://localhost:8080/productos');
271+
const response = await fetch('http://32.193.167.191:8080/productos');
272272
const data = await response.json();
273273
listaProductosGlobal = data.map(p => ({
274274
id: p.id_PRODUCTO || p.idProducto || p["Id Producto:"],

Frontend/resources/views/pedidosviews/PedidosClientes/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@
269269
270270
async function cargarProductosDesdeJava() {
271271
try {
272-
const response = await fetch('http://localhost:8080/productos');
272+
const response = await fetch('http://32.193.167.191:8080/productos');
273273
const data = await response.json();
274274
listaProductosGlobal = data.map(p => ({
275275
id: p.id_PRODUCTO || p.idProducto || p["Id Producto:"],

0 commit comments

Comments
 (0)