Sha256: dd8bc09287d448367053823463ab87e04aa2f928ce4901314bf68cb8b97432db
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
angular.module('EssayApp.services') .factory('accountService', ["$http", "$q", ($http, $q) -> api = {} api.registration = (data, locale = '') -> data.locale ||= locale if locale?.length > 0 $http method: 'POST' url: "/registration.json" data: $.param(data) headers: 'Content-Type': 'application/x-www-form-urlencoded' api.update = (data) -> $http.put("/account/profile.json", data) api.create_verification = (data) -> $http method: 'POST' url: "/account/phone_verifications.json" data: $.param(data) headers: 'Content-Type': 'application/x-www-form-urlencoded' api.update_verification = (data) -> $http.put("/account/phone_verifications/code.json", data) api.affiliate_member = (data) -> $http method: 'POST' url: "/account/referrals.json" data: $.param(data) headers: 'Content-Type': 'application/x-www-form-urlencoded' api.affiliate_resend_email = -> $http method: 'POST' url: "/account/referrals/resend_email.json" headers: 'Content-Type': 'application/x-www-form-urlencoded' api.affiliate_profile = (data) -> $http method: 'PUT' url: "/account/referrals/profile.json" data: $.param(data) headers: 'Content-Type': 'application/x-www-form-urlencoded' return api ])
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
translation_cms-0.1.5 | app/assets/javascripts/app/services/account_service.js.coffee |