This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Externo\Laboratorio\ConectaSus;
|
||||
|
||||
use App\Http\Controllers\Externo\Laboratorio\Controller;
|
||||
use App\Services\WebService\Laboratorio\ConectaSus\ExameService;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class ExameController extends Controller
|
||||
{
|
||||
protected $controller = __CLASS__;
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(ExameService::index(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(ExameService::show($id), Response::HTTP_OK);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user