| Matteo Scandolo | e19fa10 | 2017-03-09 15:38:59 -0800 | [diff] [blame] | 1 | export class XosVtrTruckroll { |
| 2 | |||||
| 3 | static $inject = [ | ||||
| 4 | '$resource', | ||||
| 5 | 'AppConfig' | ||||
| 6 | ]; | ||||
| 7 | |||||
| 8 | constructor( | ||||
| 9 | private $resource: ng.resource.IResourceService, | ||||
| 10 | private AppConfig: any | ||||
| 11 | ) { | ||||
| 12 | |||||
| 13 | } | ||||
| 14 | |||||
| 15 | public getResource() { | ||||
| 16 | return this.$resource(`${this.AppConfig.apiEndpoint}/vtr/vtrtenants/:id/`, { id: '@id' }, { | ||||
| 17 | update: { method: 'PUT' } | ||||
| 18 | }); | ||||
| 19 | } | ||||
| 20 | } | ||||