From 28c6deb5ce834983f4ed1e41ff126c463306fef9 Mon Sep 17 00:00:00 2001 From: Jean-Daniel Pearson <1476965+JDownloader@users.noreply.github.com> Date: Thu, 19 Apr 2018 15:17:04 -0400 Subject: [PATCH] feat(notifications): add aapi endpoint --- src/notification/notification.aapi.service.js | 18 ++++++++++++++++++ src/notification/notification.service.js | 9 +++++++++ 2 files changed, 27 insertions(+) create mode 100644 src/notification/notification.aapi.service.js create mode 100644 src/notification/notification.service.js 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"); + } + }; +});