Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
feat(notifications): add aapi endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
JDownloader committed May 1, 2018
1 parent 47852a3 commit 28c6deb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/notification/notification.aapi.service.js
Original file line number Diff line number Diff line change
@@ -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"
}
});
});
9 changes: 9 additions & 0 deletions src/notification/notification.service.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
angular.module("ovh-api-services").service("OvhApiNotification", function ($injector) {
"use strict";

return {
Aapi: function () {
return $injector.get("OvhNotificationAapi");
}
};
});

0 comments on commit 28c6deb

Please sign in to comment.