add network to xoslib
diff --git a/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js b/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js
index 285fb4d..5f56806 100644
--- a/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js
+++ b/planetstack/core/xoslib/static/js/xoslib/xos-backbone.js
@@ -8,6 +8,7 @@
USER_API = "/plstackapi/users/";
DEPLOYMENT_API = "/plstackapi/deployments";
IMAGE_API = "/plstackapi/images";
+ NETWORK_API = "/plstackapi/networks";
SLICEPLUS_API = "/xoslib/slicesplus/";
@@ -198,6 +199,11 @@
model: this.image});
this.images = new this.imageCollection();
+ this.network = XOSModel.extend({ urlRoot: NETWORK_API });
+ this.networkCollection = XOSCollection.extend({ urlRoot: NETWORK_API,
+ model: this.network});
+ this.networks = new this.networkCollection();
+
// enhanced REST
this.slicePlus = XOSModel.extend({ urlRoot: SLICEPLUS_API });
this.slicePlusCollection = XOSCollection.extend({ urlRoot: SLICEPLUS_API,