123456789101112131415161718 |
- (function() {
- 'use strict';
- app.factory('account.repository', function(webApi, $http) {
- return {
- login: _login,
- registration: _registration
- };
- function _registration(data) {
- return $http.post(webApi.DOMAIN + '/api/v1/account/register', data);
- }
- function _login(data) {
- return $http.post(webApi.DOMAIN + '/api/v1/account/login', data);
- }
- })
- })()
|