mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-08-07 15:40:58 +02:00
feat(forums): add replies client service
This commit is contained in:
21
modules/forums/client/services/replies.client.service.js
Normal file
21
modules/forums/client/services/replies.client.service.js
Normal file
@@ -0,0 +1,21 @@
|
||||
(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'
|
||||
}
|
||||
});
|
||||
}
|
||||
}());
|
||||
Reference in New Issue
Block a user