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