This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user