diff --git a/src/notification/notification.aapi.service.js b/src/notification/notification.aapi.service.js new file mode 100644 index 00000000..128211dd --- /dev/null +++ b/src/notification/notification.aapi.service.js @@ -0,0 +1,18 @@ +angular.module("ovh-api-services").service("OvhApiNotificationAapi", function ($resource) { + "use strict"; + + return $resource("/notification", {}, { + query: { + method: "GET", + isArray: true, + url: "/notification", + serviceType: "aapi" + }, + post: { + method: "POST", + isArray: true, + url: "/notification", + serviceType: "aapi" + } + }); +}); diff --git a/src/notification/notification.service.js b/src/notification/notification.service.js new file mode 100644 index 00000000..637e30dd --- /dev/null +++ b/src/notification/notification.service.js @@ -0,0 +1,9 @@ +angular.module("ovh-api-services").service("OvhApiNotification", function ($injector) { + "use strict"; + + return { + Aapi: function () { + return $injector.get("OvhNotificationAapi"); + } + }; +});