This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\TransportePaciente\Reabertura;
|
||||
|
||||
use App\Services\TransportePaciente\Reabertura\ReaberturaViagemService;
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class ReaberturaViagemController extends Controller
|
||||
{
|
||||
protected $modulo = 'transporte-paciente';
|
||||
|
||||
protected $funcionalidade = 'reabertura-viagem';
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(ReaberturaViagemService::index(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function list()
|
||||
{
|
||||
return response()->json(ReaberturaViagemService::list(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function reopen($id)
|
||||
{
|
||||
return response()->json(ReaberturaViagemService::reopen($id), Response::HTTP_NO_CONTENT);
|
||||
}
|
||||
|
||||
public function getCidades()
|
||||
{
|
||||
return response()->json(ReaberturaViagemService::getCidades(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getDestinos()
|
||||
{
|
||||
return response()->json(ReaberturaViagemService::getDestinos(), Response::HTTP_OK);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user