Skip to content

Instantly share code, notes, and snippets.

@alissoncs
Created May 9, 2020 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alissoncs/44beaa7cf42d250d2392deff5362ff80 to your computer and use it in GitHub Desktop.
Save alissoncs/44beaa7cf42d250d2392deff5362ff80 to your computer and use it in GitHub Desktop.
Application.js
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