33 lines
848 B
PHP
33 lines
848 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Ambulatorio;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use App\Services\Ambulatorio\RelatorioEstatisticoPacienteService;
|
|
use Illuminate\Http\Response;
|
|
|
|
class RelatorioEstatisticoPacienteController extends Controller
|
|
{
|
|
protected $modulo = 'ambulatorio';
|
|
protected $funcionalidade = 'relatorio-estatistico-paciente';
|
|
|
|
public function index()
|
|
{
|
|
$this->auth(__FUNCTION__);
|
|
|
|
return response()->json(RelatorioEstatisticoPacienteService::index(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function create()
|
|
{
|
|
return response()->json(RelatorioEstatisticoPacienteService::create(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function list()
|
|
{
|
|
$this->auth(__FUNCTION__);
|
|
|
|
return response()->json(RelatorioEstatisticoPacienteService::list(), Response::HTTP_OK);
|
|
}
|
|
}
|