36 lines
881 B
PHP
36 lines
881 B
PHP
<?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);
|
|
}
|
|
}
|