23 lines
549 B
PHP
23 lines
549 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Mobile\ConectaCidadao\ExameImagem;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Services\Mobile\ConectaCidadao\ExameImagem\LaudoService;
|
|
use Illuminate\Http\Response;
|
|
|
|
class LaudoController extends Controller
|
|
{
|
|
public function laudos()
|
|
{
|
|
return response()->json(LaudoService::laudos(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function download(int $exameId)
|
|
{
|
|
$laudo = LaudoService::download($exameId);
|
|
|
|
return response()->download($laudo['caminho'], $laudo['nome']);
|
|
}
|
|
}
|