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