27 lines
644 B
PHP
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);
|
|
}
|
|
}
|