Skip to content

Commit 9012dc6

Browse files
committed
close #18 by adding patch() convenience method
1 parent 229b93f commit 9012dc6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ class API {
7878
this.METHOD('PUT', path, handler)
7979
}
8080

81+
// PATCH: convenience method
82+
patch(path, handler) {
83+
this.METHOD('PATCH', path, handler)
84+
}
85+
8186
// DELETE: convenience method
8287
delete(path, handler) {
8388
this.METHOD('DELETE', path, handler)

0 commit comments

Comments
 (0)