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

Commit

Permalink
feat(services): add form routes (#280)
Browse files Browse the repository at this point in the history
Signed-off-by: Marie JONES <[email protected]>
  • Loading branch information
marie-j authored Feb 14, 2020
1 parent 4455fa7 commit 338f3f5
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/api/services/form/form.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
angular.module('ovh-api-services').service('OvhApiServicesForm', ($injector) => ({
v6() {
return $injector.get('OvhApiServicesFormV6');
},
}));
9 changes: 9 additions & 0 deletions src/api/services/form/form.v6.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
angular.module('ovh-api-services').service('OvhApiServicesFormV6', ($resource) => $resource('/services/:serviceId/form/:formName', {
serviceId: '@serviceId',
formName: '@formName',
}, {
answer: {
method: 'POST',
url: '/services/:serviceId/form/:formName/answer',
},
}));
3 changes: 3 additions & 0 deletions src/api/services/services.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ angular.module('ovh-api-services').service('OvhApiServices', ($injector) => ({
Detach() {
return $injector.get('OvhApiServicesDetach');
},
Form() {
return $injector.get('OvhApiServicesForm');
},
v6() {
return $injector.get('OvhApiServicesV6');
},
Expand Down

0 comments on commit 338f3f5

Please sign in to comment.