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(xdsl): add hubic v6 and v7 routes
- Loading branch information
Jérémy DE CESARE
committed
Apr 19, 2018
1 parent
47852a3
commit 9797d76
Showing
5 changed files
with
77 additions
and
10 deletions.
There are no files selected for viewing
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,9 @@ | ||
angular.module("ovh-api-services").service("OvhApiPackXdslHubicV7", function (apiv7) { | ||
"use strict"; | ||
|
||
var endpoint = apiv7("/pack/xdsl/:packName/hubic/services", { | ||
packName: "@packName" | ||
}); | ||
|
||
return endpoint; | ||
}); |
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
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,18 @@ | ||
angular.module("ovh-api-services").service("OvhApiPackXdslHubicV6", function ($cacheFactory, $resource) { | ||
"use strict"; | ||
|
||
var cache = $cacheFactory("OvhApiPackXdslHubicV6"); | ||
|
||
return $resource("/pack/xdsl/:packName/hubic/services", { | ||
packName: "@packName" | ||
}, { | ||
getDomainDetails: { | ||
method: "GET", | ||
url: "/pack/xdsl/:packName/hubic/services/:domain/details", | ||
cache: cache, | ||
params: { | ||
domain: "@domain" | ||
} | ||
} | ||
}); | ||
}); |