mirror of
https://github.com/taobataoma/meanTorrent.git
synced 2026-01-27 01:29:17 +01:00
20 lines
342 B
JavaScript
20 lines
342 B
JavaScript
(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'
|
|
}
|
|
});
|
|
}
|
|
}());
|