SLIVER_API = "/plstackapi/slivers/";
+SLICE_API = "/plstackapi/slices/";
XOSModel = Backbone.Model.extend({
/* from backbone-tastypie.js */
this.sliverCollection = XOSCollection.extend({ urlRoot: SLIVER_API,
model: this.sliver});
this.slivers = new this.sliverCollection();
+
+ this.slice = XOSModel.extend({ urlRoot: SLICE_API });
+ this.sliceCollection = XOSCollection.extend({ urlRoot: SLICE_API,
+ model: this.slice});
+ this.slices = new this.sliceCollection();
};
-XOSLib = new xoslib();
+xos = new xoslib();