This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Almoxarifado;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\Almoxarifado\InventarioService;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class InventarioController extends Controller
|
||||
{
|
||||
protected $modulo = 'almoxarifado';
|
||||
protected $funcionalidade = 'inventario';
|
||||
|
||||
public function index()
|
||||
{
|
||||
return response()->json(InventarioService::index(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function list()
|
||||
{
|
||||
return response()->json(InventarioService::list(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function store()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(InventarioService::store(), Response::HTTP_CREATED);
|
||||
}
|
||||
|
||||
public function getIntegracaoBnafarMedicamentos()
|
||||
{
|
||||
return response()->json(InventarioService::getIntegracaoBnafarMedicamentos(), Response::HTTP_OK);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user