Skip to content

Commit

Permalink
Adds get project API
Browse files Browse the repository at this point in the history
  • Loading branch information
edclements committed Dec 16, 2016
1 parent 0cea055 commit 3859616
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/resources/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ Project.prototype.getByPath = function (params, callback) {
this.client.request('get', '/project', params, callback);
};

Project.prototype.get = function (params, callback) {
this.client.request('get', '/projects/:id', params, callback);
};

Project.prototype.search = function (params, callback) {
this.client.request('get', '/projects/search/:query', params, callback);
};
Expand All @@ -63,4 +67,4 @@ Project.prototype.updateLabel = function(params, callback) {

Project.prototype.deleteLabel = function(params, callback) {
this.client.request('delete', this.onePath + '/labels', params, callback);
};
};

0 comments on commit 3859616

Please sign in to comment.