Skip to content

Commit

Permalink
Merge pull request #41 from claude-abounegm/master
Browse files Browse the repository at this point in the history
Added delete key method to UserKeys.js
  • Loading branch information
jdalrymple authored Feb 8, 2018
2 parents 4e90cfa + e7f8fea commit cfe1f67
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Models/UserKeys.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ class UserKeys extends BaseModel {
});
}

remove(userId, keyId) {
const uId = parse(userId);
const kId = parse(keyId);

return this.delete(`users/${uId}/keys/${kId}`);
}

all(userId) {
const uId = parse(userId);

Expand Down

0 comments on commit cfe1f67

Please sign in to comment.