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