Created
May 9, 2020 18:58
-
-
Save alissoncs/44beaa7cf42d250d2392deff5362ff80 to your computer and use it in GitHub Desktop.
Application.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Application = { | |
listAllAwards: function (success, err) { | |
return http.Connection('/Awards', {}, function () { | |
return success(mockAwardsList); | |
}, err); | |
}, | |
BuyTicket: function (awardId, success, err) { | |
return http.Connection('/BuyTicket', { | |
awardId: awardId, | |
}, success, err); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment