File tree Expand file tree Collapse file tree
Frontend/resources/views/pedidosviews/PedidosClientes Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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:" ],
Original file line number Diff line number Diff line change 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 ();
Original file line number Diff line number Diff line change 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:" ],
Original file line number Diff line number Diff line change 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:" ],
You can’t perform that action at this time.
0 commit comments