forked from nathalie/pedi2
Quitada ruta y metodo no usados
This commit is contained in:
parent
88af33d998
commit
04673b1754
2 changed files with 0 additions and 6 deletions
|
@ -15,11 +15,6 @@ class ProductoController extends Controller
|
||||||
return ProductoResource::collection(Producto::filtrar($filtros)->paginate(Producto::getPaginar($request)));
|
return ProductoResource::collection(Producto::filtrar($filtros)->paginate(Producto::getPaginar($request)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function show(Producto $producto)
|
|
||||||
{
|
|
||||||
return new ProductoResource($producto);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function categorias()
|
public function categorias()
|
||||||
{
|
{
|
||||||
return Producto::all()->pluck('categoria')->unique()->flatten();
|
return Producto::all()->pluck('categoria')->unique()->flatten();
|
||||||
|
|
|
@ -42,6 +42,5 @@ Route::middleware('api')->group(function() {
|
||||||
//@TO DO -> esta ruta debe estar en middleware de auth y/o subpedido
|
//@TO DO -> esta ruta debe estar en middleware de auth y/o subpedido
|
||||||
Route::prefix('productos')->group(function () {
|
Route::prefix('productos')->group(function () {
|
||||||
Route::get('/','Api\ProductoController@index');
|
Route::get('/','Api\ProductoController@index');
|
||||||
Route::get('{producto}','Api\ProductoController@show');
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue