From 5342837d40a68fa1ecc1bad0a8e8224feca3a96d Mon Sep 17 00:00:00 2001 From: Marco Nassabain Date: Sun, 17 Jan 2021 19:52:14 +0100 Subject: =?UTF-8?q?=E2=9C=A8=20NewsItem:=20share=20with=20user=20on=20clic?= =?UTF-8?q?k=20(front-end)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marco Nassabain --- js/controller/ShareController.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'js/controller/ShareController.js') diff --git a/js/controller/ShareController.js b/js/controller/ShareController.js index 4b7f15d0e..2977dc2c2 100644 --- a/js/controller/ShareController.js +++ b/js/controller/ShareController.js @@ -25,4 +25,11 @@ app.controller('ShareController', function (ShareResource) { }); }; + this.shareItem = function(itemId, userId) { + var response = ShareResource.shareItem(itemId, userId); + response.then((result) => { + return result; + }); + }; + }); \ No newline at end of file -- cgit v1.2.3