diff options
Diffstat (limited to 'js/controller/ShareController.js')
-rw-r--r-- | js/controller/ShareController.js | 7 |
1 files changed, 7 insertions, 0 deletions
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 |