27 lines
639 B
PHP
27 lines
639 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Externo\Almoxarifado\ConectaSus;
|
|
|
|
use App\Http\Controllers\Externo\Almoxarifado\Controller;
|
|
use App\Services\WebService\Almoxarifado\ConectaSus\FabricanteService;
|
|
use Illuminate\Http\Response;
|
|
|
|
class FabricanteController extends Controller
|
|
{
|
|
protected $controller = __CLASS__;
|
|
|
|
public function index()
|
|
{
|
|
$this->auth(__FUNCTION__);
|
|
|
|
return response()->json(FabricanteService::index(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function show($id)
|
|
{
|
|
$this->auth(__FUNCTION__);
|
|
|
|
return response()->json(FabricanteService::show($id), Response::HTTP_OK);
|
|
}
|
|
}
|