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(modem): add endpoint to availabel wlan channel
ref: XDSL-5194
- Loading branch information
1 parent
8e2658b
commit 460ab11
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
src/xdsl/modem/availableWLANChannel/xdsl-modem-availableWLANChannel.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,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 | ||
}; | ||
}); |
13 changes: 13 additions & 0 deletions
13
src/xdsl/modem/availableWLANChannel/xdsl-modem-availableWLANChannel.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,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 | ||
} | ||
}); | ||
}); |
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