Skip to content

Commit

Permalink
Fix incorrect path for delete hook API (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
kainisoft authored and clayreimann committed Jan 30, 2017
1 parent bc37708 commit 2deb74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ class Repository extends Requestable {
* @return {Promise} - the promise for the http request
*/
deleteHook(id, cb) {
return this._request('DELETE', `${this.__fullname}/hooks/${id}`, null, cb);
return this._request('DELETE', `/repos/${this.__fullname}/hooks/${id}`, null, cb);
}

/**
Expand Down

0 comments on commit 2deb74c

Please sign in to comment.