diff --git a/front-ui/app/models/recipientDestination.js b/front-ui/app/models/recipientDestination.js new file mode 100644 index 0000000..f38f137 --- /dev/null +++ b/front-ui/app/models/recipientDestination.js @@ -0,0 +1,22 @@ +var Backbone = require('backbone'); +var Globals = require('../globals'); + +var RecipientDestination = Backbone.Model.extend({ + + initialize: function() { + $.ajaxPrefilter( + function(options, originalOptions, jqXHR) { + options.xhrFields = { + withCredentials: true + } + } + ); + }, + + url: Globals.ApiUrl + '/cart/recipient_destination', + defaults: { + count: 0 + } +}); + +module.exports = RecipientDestination;