diff --git a/src/dedicatedCloud/servicePacks/dedicatedCloud-servicePacks.v6.service.js b/src/dedicatedCloud/servicePacks/dedicatedCloud-servicePacks.v6.service.js index 2f017460..4400964a 100644 --- a/src/dedicatedCloud/servicePacks/dedicatedCloud-servicePacks.v6.service.js +++ b/src/dedicatedCloud/servicePacks/dedicatedCloud-servicePacks.v6.service.js @@ -6,16 +6,13 @@ angular var queryCache = $cacheFactory("OvhApiDedicatedCloudServicePacksV6Query"); var cache = $cacheFactory("OvhApiDedicatedCloudServicePacksV6"); - var servicePacksResource = $resource("/dedicatedCloud/:serviceName/servicePacks", { + var servicePacksResource = $resource("/dedicatedCloud/:serviceName/servicePacks/:name", { + name: "@name", serviceName: "@serviceName" }, { get: { cache: cache, - method: "GET", - params: { - name: "@name" - }, - url: "/dedicatedCloud/:serviceName/servicePacks/:name" + method: "GET" }, query: { cache: queryCache,