diff --git a/index.js b/index.js index dc164ab..95726ed 100644 --- a/index.js +++ b/index.js @@ -92,6 +92,12 @@ module.exports = function () { this.curl.setOpt(Curl.option.CUSTOMREQUEST, 'POST'); return this._submit(); }; + + this.put = (url) => { + this._setUrl(url); + this.curl.setOpt(Curl.option.CUSTOMREQUEST, 'PUT'); + return this._submit(); + }; this.patch = (url) => { this._setUrl(url); @@ -174,4 +180,4 @@ module.exports = function () { }; return this; -}; \ No newline at end of file +};