account.factory.js 257 B

12345678910111213141516
  1. (function() {
  2. 'use strict';
  3. app.factory('account.repository', ['webApi', '$http', function(webApi, $http) {
  4. return {
  5. login: _login,
  6. };
  7. function _login(data) {
  8. return $http.post(webApi.DOMAIN + '/api/v2/login', data);
  9. }
  10. }]);
  11. })();