mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-16 04:12:19 +01:00
22 lines
414 B
JavaScript
22 lines
414 B
JavaScript
(function () {
|
|
'use strict';
|
|
|
|
angular
|
|
.module('forums.services')
|
|
.factory('RepliesService', RepliesService);
|
|
|
|
RepliesService.$inject = ['$resource'];
|
|
|
|
function RepliesService($resource) {
|
|
return $resource('/api/topics/:forumId/:topicId/:replyId', {
|
|
forumId: '@forum',
|
|
topicId: '@topic',
|
|
replyId: '@_id'
|
|
}, {
|
|
update: {
|
|
method: 'PUT'
|
|
}
|
|
});
|
|
}
|
|
}());
|