Blame view
app/views/fbo-flight/flightDeptService.js
1.06 KB
5c6477d3d
|
1 2 3 4 |
(function() { 'use strict'; angular.module('inspinia') |
7379f005b
|
5 |
.service('FBOFlight', ['$rootScope', '$q', '$http', 'BE', FBOFlight]) |
5c6477d3d
|
6 |
|
7379f005b
|
7 |
function FBOFlight($rootScope, $q, $http, BE) { |
5c6477d3d
|
8 9 10 11 12 13 |
this.registerUser = function(data) { var deferred = $q.defer(); $http({ method : 'POST', |
7379f005b
|
14 |
url : BE.url +'/account/user/registration', |
5c6477d3d
|
15 16 17 18 19 20 21 22 |
headers : {'Content-Type': 'application/x-www-form-urlencoded'}, data : data }) .success(function(result) { deferred.resolve(result); }) return deferred.promise; } |
7379f005b
|
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
this.addCardInformation = function(data) { var deferred = $q.defer(); $http({ method : 'POST', url : BE.url +'/account/user/addPaymentMethods', headers : {'Content-Type': 'application/json'}, data : data }) .success(function(result) { deferred.resolve(result); }) return deferred.promise; } |
5c6477d3d
|
38 39 40 |
} })(); |