Files
rkm-conectasus-ci-sandbox/api/app/Http/Controllers/TransportePaciente/Gerenciamento/GerenciamentoController.php
Antonio Lopes dos Santos afec302c3e
All checks were successful
build-api-image / build (push) Successful in 51s
init commit
2026-08-04 16:52:02 -03:00

38 lines
949 B
PHP

<?php
namespace App\Http\Controllers\TransportePaciente\Gerenciamento;
use App\Http\Controllers\Controller;
use App\Services\TransportePaciente\Gerenciamento\GerenciamentoService;
use Illuminate\Http\Response;
class GerenciamentoController extends Controller
{
protected $modulo = 'transporte-paciente';
protected $funcionalidade = 'gerenciamento';
public function show($id)
{
$this->auth(__FUNCTION__);
return response()->json(GerenciamentoService::show($id), Response::HTTP_OK);
}
public function store()
{
$this->auth(__FUNCTION__);
return response()->json(GerenciamentoService::store(), Response::HTTP_CREATED);
}
public function datatable()
{
return response()->json(GerenciamentoService::datatable(), Response::HTTP_OK);
}
public function update()
{
return response()->json(GerenciamentoService::update(), Response::HTTP_OK);
}
}