feat(requests): add request client.service

This commit is contained in:
OldHawk
2018-01-10 14:11:01 +08:00
parent 2e815e7027
commit e4e195411d

View 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'
}
});
}
}());