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

Commit

Permalink
feat(modem): add endpoint to availabel wlan channel
Browse files Browse the repository at this point in the history
ref: XDSL-5194
  • Loading branch information
Steffy29 authored and antleblanc committed Nov 2, 2018
1 parent 8e2658b commit 460ab11
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
};
});
Original file line number Diff line number Diff line change
@@ -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
}
});
});
3 changes: 3 additions & 0 deletions src/xdsl/modem/xdsl-modem.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
});

0 comments on commit 460ab11

Please sign in to comment.