This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\TransportePaciente;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\TransportePaciente\PreAgendamentoTransporteService;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class PreAgendamentoTransporteController extends Controller
|
||||
{
|
||||
protected $modulo = 'transporte-paciente';
|
||||
protected $funcionalidade = 'pre-agendamento-transporte';
|
||||
|
||||
public function store(Request $request)
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(PreAgendamentoTransporteService::store($request), Response::HTTP_CREATED);
|
||||
}
|
||||
|
||||
public function edit($id)
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(PreAgendamentoTransporteService::edit($id), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function destroy($id)
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(PreAgendamentoTransporteService::destroy($id), Response::HTTP_NO_CONTENT);
|
||||
}
|
||||
|
||||
public function destroyAll(Request $request)
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(PreAgendamentoTransporteService::destroyAll($request), Response::HTTP_NO_CONTENT);
|
||||
}
|
||||
|
||||
public function search(Request $request)
|
||||
{
|
||||
return response()->json(PreAgendamentoTransporteService::search($request), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function update(Request $request)
|
||||
{
|
||||
return response()->json(PreAgendamentoTransporteService::update($request), Response::HTTP_OK);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user