This commit is contained in:
paoloar77
2024-06-15 17:32:00 +02:00
parent 89e0bdb153
commit 0382fd15ab

View File

@@ -25,6 +25,8 @@ class TestPaoController extends Controller
public function getProductBySku($sku) public function getProductBySku($sku)
{ {
echo "getProductBySku:" . $sku;
/*
// Estrai il prodotto utilizzando il codice SKU // Estrai il prodotto utilizzando il codice SKU
$product = Product::where('sku', $sku)->first(); $product = Product::where('sku', $sku)->first();
@@ -34,6 +36,8 @@ class TestPaoController extends Controller
} else { } else {
// Ritorna un errore se il prodotto non è trovato // Ritorna un errore se il prodotto non è trovato
return response()->json(['error' => 'Product not found'], 404); return response()->json(['error' => 'Product not found'], 404);
} }*/
response()->json(true);
} }
} }