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

Commit

Permalink
feat(xdsl.incident): add api bindings (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeremyDec authored and antleblanc committed Apr 10, 2019
1 parent 8cf27bb commit f6aae2b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/xdsl/incident/xdsl-incident.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
angular.module("ovh-api-services").service("OvhApiXdslIncident", function ($injector) {
"use strict";

return {
v6: function () {
return $injector.get("OvhApiXdslIncidentV6");
}
};
});
15 changes: 15 additions & 0 deletions src/xdsl/incident/xdsl-incident.v6.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
angular.module("ovh-api-services").service("OvhApiXdslIncidentV6", function ($cacheFactory, $resource) {
"use strict";

var cache = $cacheFactory("OvhApiXdslIncidentV6");

return $resource("/xdsl/:serviceName/incident", {
serviceName: "@serviceName"
}, {
get: {
method: "GET",
cache: cache,
isArray: false
}
});
});
3 changes: 3 additions & 0 deletions src/xdsl/xdsl.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ angular.module("ovh-api-services").service("OvhApiXdsl", function ($injector, $c
Email: function () {
return $injector.get("OvhApiXdslEmail");
},
Incident: function () {
return $injector.get("OvhApiXdslIncident");
},
Lines: function () {
return $injector.get("OvhApiXdslLines");
},
Expand Down

0 comments on commit f6aae2b

Please sign in to comment.