angular.module('focaCrearLogin') .factory('focaCrearLoginService', ['$http', 'API_ENDPOINT', function($http, API_ENDPOINT) { return { getListaChoferes: function() { return $http.get(API_ENDPOINT.URL + '/chofer'); }, getListaCobradores: function() { return $http.get(API_ENDPOINT.URL + '/cobrador'); }, getListaVendedores: function() { return $http.get(API_ENDPOINT.URL + '/vendedor'); } }; }]);