mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-22 15:22:34 +01:00
25 lines
561 B
JavaScript
25 lines
561 B
JavaScript
(function () {
|
|
'use strict';
|
|
|
|
// Users service used for communicating with the users REST endpoint
|
|
angular
|
|
.module('torrents.services')
|
|
.factory('CommentsService', CommentsService);
|
|
|
|
CommentsService.$inject = ['$resource'];
|
|
|
|
function CommentsService($resource) {
|
|
var Comments = $resource('/api/comments/:torrentId/:commentId/:subCommentId', {
|
|
torrentId: '@_torrentId',
|
|
commentId: '@_commentId',
|
|
subCommentId: '@_subCommentId'
|
|
}, {
|
|
update: {
|
|
method: 'PUT'
|
|
}
|
|
});
|
|
|
|
return Comments;
|
|
}
|
|
}());
|