diff --git a/src/cloud/project/storage/cloud-project-storage.aapi.service.js b/src/cloud/project/storage/cloud-project-storage.aapi.service.js new file mode 100644 index 00000000..ad72b329 --- /dev/null +++ b/src/cloud/project/storage/cloud-project-storage.aapi.service.js @@ -0,0 +1,16 @@ +angular.module("ovh-api-services").service("OvhApiCloudProjectStorageAapi", function ($resource) { + "use strict"; + + var storages = $resource("/cloud/project/:serviceName/storages", { + serviceName: "@serviceName" + }, { + query: { + method: "GET", + serviceType: "aapi", + archive: "@archive", + isArray: true + } + }); + + return storages; +}); diff --git a/src/cloud/project/storage/cloud-project-storage.service.js b/src/cloud/project/storage/cloud-project-storage.service.js index e30cea47..cf439ae7 100644 --- a/src/cloud/project/storage/cloud-project-storage.service.js +++ b/src/cloud/project/storage/cloud-project-storage.service.js @@ -4,6 +4,9 @@ angular.module("ovh-api-services").service("OvhApiCloudProjectStorage", function return { v6: function () { return $injector.get("OvhApiCloudProjectStorageV6"); + }, + Aapi: function () { + return $injector.get("OvhApiCloudProjectStorageAapi"); } };