This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(hosting.web): added hosting email option end points (#267)
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
src/api/hosting/web/emailOption/hosting-web-email-option.service.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
angular.module('ovh-api-services').service('OvhApiHostingWebEmailOption', ($injector) => ({ | ||
v6() { | ||
return $injector.get('OvhApiHostingWebEmailOptionV6'); | ||
}, | ||
})); |
34 changes: 34 additions & 0 deletions
34
src/api/hosting/web/emailOption/hosting-web-email-option.v6.service.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
angular.module('ovh-api-services').service('OvhApiHostingWebEmailOptionV6', ($resource, $cacheFactory) => { | ||
const cache = $cacheFactory('OvhApiHostingWebEmailOptionv6Cache'); | ||
const queryCache = $cacheFactory('OvhApiHostingWebEmailOptionv6CacheQuery'); | ||
|
||
const resource = $resource('/hosting/web/:serviceName/emailOption/:id', { | ||
serviceName: '@serviceName', | ||
id: '@id', | ||
}, { | ||
query: { | ||
method: 'GET', | ||
cache: queryCache, | ||
isArray: true, | ||
}, | ||
get: { | ||
method: 'GET', | ||
cache, | ||
}, | ||
serviceInfo: { | ||
method: 'GET', | ||
url: '/hosting/web/:serviceName/emailOption/:id/serviceInfos', | ||
cache, | ||
} | ||
}); | ||
|
||
resource.resetCache = function () { | ||
cache.removeAll(); | ||
}; | ||
|
||
resource.resetQueryCache = function () { | ||
queryCache.removeAll(); | ||
}; | ||
|
||
return resource; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters