This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\TransportePaciente;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\TransportePaciente\ViagemDataService;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class ViagemDataController extends Controller
|
||||
{
|
||||
protected $modulo = 'transporte-paciente';
|
||||
protected $funcionalidade = 'relatorio-viagem-data';
|
||||
|
||||
public function index()
|
||||
{
|
||||
return response()->json(ViagemDataService::index(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function list()
|
||||
{
|
||||
return response()->json(ViagemDataService::list(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getMunicipios()
|
||||
{
|
||||
return response()->json(ViagemDataService::getMunicipios(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getMotoristas()
|
||||
{
|
||||
return response()->json(ViagemDataService::getMotoristas(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getDestinos()
|
||||
{
|
||||
return response()->json(ViagemDataService::getDestinos(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function getStatus()
|
||||
{
|
||||
return response()->json(ViagemDataService::getStatus(), Response::HTTP_OK);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user