Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
feat(cloud): add cloud project storage aapi service (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbourgois authored and jleveugle committed Apr 12, 2019
1 parent ebde613 commit 3a4abad
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/cloud/project/storage/cloud-project-storage.aapi.service.js
Original file line number Diff line number Diff line change
@@ -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;
});
3 changes: 3 additions & 0 deletions src/cloud/project/storage/cloud-project-storage.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
};

Expand Down

0 comments on commit 3a4abad

Please sign in to comment.