lib/flapjack/gateways/web/public/js/modules/medium.js in flapjack-0.9.4 vs lib/flapjack/gateways/web/public/js/modules/medium.js in flapjack-0.9.5
- old
+ new
@@ -19,21 +19,21 @@
toJSON: function() {
return _.pick(this.attributes, 'id', 'type', 'address', 'interval', 'rollup_threshold');
},
sync: function(method, model, options) {
if ( method == 'create') {
- options.url = flapjack.api_url + '/contacts/' + model.contact.get('id') + '/' + this.name;
+ options.url = flapjack.api_url + 'contacts/' + model.contact.get('id') + '/' + this.name;
} else {
- options.url = flapjack.api_url + '/' + this.name + '/' + model.contact.get('id') + '_' + model.get('type');
+ options.url = flapjack.api_url + this.name + '/' + model.contact.get('id') + '_' + model.get('type');
}
Backbone.JSONAPIModel.prototype.sync(method, model, options);
}
});
Medium.List = Backbone.JSONAPICollection.extend({
model: Medium.Model,
comparator: 'type',
- url: function() { return flapjack.api_url + "/media"; }
+ url: function() { return flapjack.api_url + "media"; }
});
-})(flapjack, flapjack.module("medium"));
\ No newline at end of file
+})(flapjack, flapjack.module("medium"));