mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-02-19 21:07:04 +01:00
feat(forums): add forum topics client service
This commit is contained in:
19
modules/forums/client/services/topics.client.service.js
Normal file
19
modules/forums/client/services/topics.client.service.js
Normal file
@@ -0,0 +1,19 @@
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
angular
|
||||
.module('forums.services')
|
||||
.factory('TopicsService', TopicsService);
|
||||
|
||||
TopicsService.$inject = ['$resource'];
|
||||
|
||||
function TopicsService($resource) {
|
||||
return $resource('/api/topics/:forumId', {
|
||||
forumId: '@_id'
|
||||
}, {
|
||||
update: {
|
||||
method: 'PUT'
|
||||
}
|
||||
});
|
||||
}
|
||||
}());
|
||||
Reference in New Issue
Block a user