From 71ce112b186f16c05445e39f0cfff9c5c56a1c04 Mon Sep 17 00:00:00 2001 From: FredericEspiau Date: Mon, 7 Jan 2019 14:02:19 +0100 Subject: [PATCH] feat(email-mxplan): add new service --- src/email/mxPlan/email-mxPlan.service.js | 13 +++++++++++++ src/email/mxPlan/email-mxPlan.v7.service.js | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 src/email/mxPlan/email-mxPlan.service.js create mode 100644 src/email/mxPlan/email-mxPlan.v7.service.js diff --git a/src/email/mxPlan/email-mxPlan.service.js b/src/email/mxPlan/email-mxPlan.service.js new file mode 100644 index 00000000..d5327d94 --- /dev/null +++ b/src/email/mxPlan/email-mxPlan.service.js @@ -0,0 +1,13 @@ +angular + .module("ovh-api-services") + .service( + "OvhApiEmailMXPlan", + function ($injector) { + "use strict"; + + return { + v7: function () { + return $injector.get("OvhApiEmailMXPlanV7"); + } + }; + }); diff --git a/src/email/mxPlan/email-mxPlan.v7.service.js b/src/email/mxPlan/email-mxPlan.v7.service.js new file mode 100644 index 00000000..c8bac1fb --- /dev/null +++ b/src/email/mxPlan/email-mxPlan.v7.service.js @@ -0,0 +1,13 @@ +angular + .module("ovh-api-services") + .service( + "OvhApiEmailMXPlanV7", + function (apiv7) { + "use strict"; + + var emailMXPlanEndpoint = apiv7("/email/mxplan/:serviceName/", { + serviceName: "@serviceName" + }); + + return emailMXPlanEndpoint; + });