service.js 336 Bytes edit raw blame history 1 2 3 4 5 6 7 8 9 10 11 angular.module('focaLogin') .service('focaLoginService', [ '$http', 'API_ENDPOINT', function($http, API_ENDPOINT) { return { login: function(usuario) { return $http.post(API_ENDPOINT.URL + '/usuario/login', usuario); } }; } ]);