angular.module('focaModalVehiculo') .service('focaModalVehiculoService', [ '$http', 'API_ENDPOINT', function($http, API_ENDPOINT) { return { getVehiculos: function() { return $http.get(API_ENDPOINT.URL + '/vehiculo'); } }; } ]);