mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-31 11:39:20 +01:00
25 lines
596 B
JavaScript
25 lines
596 B
JavaScript
(function () {
|
|
'use strict';
|
|
|
|
// Users service used for communicating with the users REST endpoint
|
|
angular
|
|
.module('requests.services')
|
|
.factory('RequestsCommentsService', RequestsCommentsService);
|
|
|
|
RequestsCommentsService.$inject = ['$resource'];
|
|
|
|
function RequestsCommentsService($resource) {
|
|
var Comments = $resource('/api/reqComments/:requestId/:commentId/:subCommentId', {
|
|
requestId: '@_requestId',
|
|
commentId: '@_commentId',
|
|
subCommentId: '@_subCommentId'
|
|
}, {
|
|
update: {
|
|
method: 'PUT'
|
|
}
|
|
});
|
|
|
|
return Comments;
|
|
}
|
|
}());
|