Skip to content

Commit 9f868b6

Browse files
committed
Merge branch 'desarrollo' into produccion
2 parents 08e6d30 + 177960c commit 9f868b6

3 files changed

Lines changed: 3 additions & 3 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://32.193.167.191:8080/productos');
95+
const response = await fetch("{{ route('api.productos.lista') }}");
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://32.193.167.191:8080/productos');
132+
const response = await fetch("{{ route('api.productos.lista') }}");
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.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://32.193.167.191:8080/productos');
272+
const response = await fetch("{{ route('api.productos.lista') }}");
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)