angular.module('focaModalLogin') .factory('focaModalLoginService', ['$http', 'API_ENDPOINT', function($http, API_ENDPOINT) { return { postLogin: function(login) { return $http.post(API_ENDPOINT.URL + '/login/crear', login); } }; }]);