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

Commit

Permalink
feat(hosting): add web services (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyDec authored and antleblanc committed Nov 15, 2019
1 parent c55c457 commit 30a5fd5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/api/hosting/web/web.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
angular.module('ovh-api-services').service('OvhApiHostingWeb', ($injector) => ({
ModuleList() {
return $injector.get('OvhApiHostingWebModuleList');
},
Ssl() {
return $injector.get('OvhApiHostingWebSsl');
},
v6() {
return $injector.get('OvhApiHostingWebV6');
},
}));
15 changes: 15 additions & 0 deletions src/api/hosting/web/web.v6.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
angular.module('ovh-api-services').service('OvhApiHostingWebV6', ($cacheFactory, $resource) => {
const cache = $cacheFactory('OvhApiHostingWebV6');

return $resource('/hosting/web/:serviceName', {
serviceName: '@serviceName',
}, {
getAttachedDomain: {
url: '/hosting/web/attachedDomain',
method: 'GET',
params: { domain: '@domain' },
cache,
isArray: true,
},
});
});

0 comments on commit 30a5fd5

Please sign in to comment.