funcion/refactor-general #45

Merged
atasistro merged 240 commits from funcion/refactor-general into master 2025-06-19 21:10:19 -03:00
2 changed files with 0 additions and 6 deletions
Showing only changes of commit 04673b1754 - Show all commits

View file

@ -15,11 +15,6 @@ class ProductoController extends Controller
return ProductoResource::collection(Producto::filtrar($filtros)->paginate(Producto::getPaginar($request)));
}
public function show(Producto $producto)
{
return new ProductoResource($producto);
}
public function categorias()
{
return Producto::all()->pluck('categoria')->unique()->flatten();

View file

@ -42,6 +42,5 @@ Route::middleware('api')->group(function() {
//@TO DO -> esta ruta debe estar en middleware de auth y/o subpedido
Route::prefix('productos')->group(function () {
Route::get('/','Api\ProductoController@index');
Route::get('{producto}','Api\ProductoController@show');
});
});