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