var MyModel = Backbone.Model.extend({
destroy: function (options) {
var opts = _.extend({url: '/destroy/' + this.id}, options || {});
return Backbone.Model.prototype.destroy.call(this, opts);
}
)};
All AJAX-based interactions are ultimately handled Backbone.sync, which accepts an options object where a URL can be provided if the default URL scheme for your server is down.
source
share