[CORD-1044] Migrating vTR Dashboard to the new GUI using gui-extensions
Change-Id: I33847766b790ffba2b9a9e9cfab9a7060734ce91
diff --git a/xos/gui/src/app/services/truckroll.resource.ts b/xos/gui/src/app/services/truckroll.resource.ts
new file mode 100644
index 0000000..1791021
--- /dev/null
+++ b/xos/gui/src/app/services/truckroll.resource.ts
@@ -0,0 +1,20 @@
+export class XosVtrTruckroll {
+
+ static $inject = [
+ '$resource',
+ 'AppConfig'
+ ];
+
+ constructor(
+ private $resource: ng.resource.IResourceService,
+ private AppConfig: any
+ ) {
+
+ }
+
+ public getResource() {
+ return this.$resource(`${this.AppConfig.apiEndpoint}/vtr/vtrtenants/:id/`, { id: '@id' }, {
+ update: { method: 'PUT' }
+ });
+ }
+}