Skip to content

Commit

Permalink
Merge pull request #73 from dashersw/master
Browse files Browse the repository at this point in the history
Added json method to services
  • Loading branch information
danwrong committed May 2, 2012
2 parents 254891d + ac7534d commit 14a06a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/restler.js
Expand Up @@ -457,6 +457,9 @@ mixin(Service.prototype, {
post: function(path, options) {
return post(this._url(path), this._withDefaults(options));
},
json: function(method, path, data, options) {
return json(this._url(path), data, this._withDefaults(options), method);
},
del: function(path, options) {
return del(this._url(path), this._withDefaults(options));
},
Expand Down

0 comments on commit 14a06a5

Please sign in to comment.