@fmal/http-service
Version:
A HTTP service - orignally @cerebral/http
16 lines (13 loc) • 409 B
JavaScript
import { processResponse } from '../utils';
function httpPatchFactory(url, body, options) {
if (body === void 0) {
body = {};
}
return function httpPatch(_ref) {
var http = _ref.http,
path = _ref.path,
resolve = _ref.resolve;
return processResponse(http.patch(resolve.value(url), resolve.value(body), resolve.value(options)), path);
};
}
export default httpPatchFactory;