File tree Expand file tree Collapse file tree
Http/Controllers/Productos Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99class Categoriaproductos extends Controller
1010{
11- private $ apiBaseUrl = 'http://localhost:8080 ' ;
11+ protected $ baseUrl ;
12+
13+ public function __construct ()
14+ {
15+ $ this ->baseUrl = env ('API_BASE_URL ' , 'http://32.193.167.191:8080 ' );
16+ }
1217
1318 public function index ()
1419 {
Original file line number Diff line number Diff line change 99
1010class Menuproductos extends Controller
1111{
12- private $ apiBaseUrl = ' http://localhost:8080 ' ;
12+ protected $ baseUrl ;
1313
14+ public function __construct ()
15+ {
16+ // Obtiene la URL base de la API desde el archivo .env
17+ $ this ->baseUrl = env ('API_BASE_URL ' , 'http://32.193.167.191:8080 ' );
18+ }
1419 public function index ()
1520 {
1621 try {
Original file line number Diff line number Diff line change 99
1010class ProductoController extends Controller
1111{
12- protected $ apiUrl = 'http://localhost:8080/productos ' ;
12+ protected $ baseUrl ;
13+
14+ public function __construct ()
15+ {
16+ // Obtiene la URL base de la API desde el archivo .env
17+ $ this ->baseUrl = env ('API_BASE_URL ' , 'http://32.193.167.191:8080 ' );
18+ }
1319
1420 public function index ()
1521 {
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class ProduccionService
1212 public function __construct ()
1313 {
1414 // Obtiene la URL base de la API desde el archivo .env
15- $ this ->baseUrl = env ('API_BASE_URL ' , 'http://44.195.189.38 :8080 ' );
15+ $ this ->baseUrl = env ('API_BASE_URL ' , 'http://32.193.167.191 :8080 ' );
1616 }
1717
1818 protected function getApiClient ()
Original file line number Diff line number Diff line change 88
99class OrdenSalidaService {
1010
11+ public function __construct ()
12+ {
13+ $ this ->baseUrl = env ('API_BASE_URL ' , 'http://32.193.167.191:8080 ' );
14+ }
15+
1116 /**
1217 * Obtener todas las ventas/órdenes de salida
1318 */
You can’t perform that action at this time.
0 commit comments