Files
Antonio Lopes dos Santos afec302c3e
All checks were successful
build-api-image / build (push) Successful in 51s
init commit
2026-08-04 16:52:02 -03:00

27 lines
644 B
PHP

<?php
namespace App\Http\Controllers\Externo\Ambulatorio\ConectaSus;
use App\Http\Controllers\Externo\Ambulatorio\Controller;
use App\Services\WebService\Ambulatorio\ConectaSus\PacienteService;
use Illuminate\Http\Response;
class PacienteController extends Controller
{
protected $controller = __CLASS__;
public function index()
{
$this->auth(__FUNCTION__);
return response()->json(PacienteService::index(), Response::HTTP_OK);
}
public function show($idPaciente)
{
$this->auth(__FUNCTION__);
return response()->json(PacienteService::show($idPaciente), Response::HTTP_OK);
}
}