diff --git a/src/xdsl/modem/availableWLANChannel/xdsl-modem-availableWLANChannel.service.js b/src/xdsl/modem/availableWLANChannel/xdsl-modem-availableWLANChannel.service.js new file mode 100644 index 00000000..feb4bea4 --- /dev/null +++ b/src/xdsl/modem/availableWLANChannel/xdsl-modem-availableWLANChannel.service.js @@ -0,0 +1,13 @@ +angular.module("ovh-api-services").service("OvhApiXdslModemAvailableWLANChannel", function ($injector, $cacheFactory) { + "use strict"; + + var cache = $cacheFactory("OvhApiXdslModemAvailableWLANChannel"); + + return { + v6: function () { + return $injector.get("OvhApiXdslModemAvailableWLANChannelV6"); + }, + resetCache: cache.removeAll, + cache: cache + }; +}); diff --git a/src/xdsl/modem/availableWLANChannel/xdsl-modem-availableWLANChannel.v6.service.js b/src/xdsl/modem/availableWLANChannel/xdsl-modem-availableWLANChannel.v6.service.js new file mode 100644 index 00000000..bcb1391b --- /dev/null +++ b/src/xdsl/modem/availableWLANChannel/xdsl-modem-availableWLANChannel.v6.service.js @@ -0,0 +1,13 @@ +angular.module("ovh-api-services").service("OvhApiXdslModemAvailableWLANChannelV6", function ($resource, OvhApiXdslModemAvailableWLANChannel) { + "use strict"; + + return $resource("/xdsl/:xdslId/modem/availableWLANChannel", { + xdslId: "@xdslId" + }, { + get: { + method: "GET", + isArray: true, + cache: OvhApiXdslModemAvailableWLANChannel.cache + } + }); +}); diff --git a/src/xdsl/modem/xdsl-modem.service.js b/src/xdsl/modem/xdsl-modem.service.js index e608508a..7ca71fb2 100644 --- a/src/xdsl/modem/xdsl-modem.service.js +++ b/src/xdsl/modem/xdsl-modem.service.js @@ -32,6 +32,9 @@ angular.module("ovh-api-services").service("OvhApiXdslModem", function ($injecto Wifi: function () { return $injector.get("OvhApiXdslModemWifi"); }, + AvailableWLANChannel: function () { + return $injector.get("OvhApiXdslModemAvailableWLANChannel"); + }, cache: cache }; });