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

Commit

Permalink
feat(service): add aapi bindings (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrille Bourgois authored and antleblanc committed May 17, 2019
1 parent 4ed3165 commit b8c9fd7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/service/services.aapi.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
angular.module("ovh-api-services").service("OvhApiServiceAapi", function ($resource) {
"use strict";

return $resource("/service", {}, {
query: {
isArray: true,
serviceType: "aapi"
}
});
});
8 changes: 8 additions & 0 deletions src/service/services.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
angular.module("ovh-api-services").service("OvhApiService", function ($injector) {
"use strict";
return {
Aapi: function () {
return $injector.get("OvhApiServiceAapi");
}
};
});

0 comments on commit b8c9fd7

Please sign in to comment.