diff --git a/src/index.js b/src/index.js index 130b3fb..275bc22 100644 --- a/src/index.js +++ b/src/index.js @@ -96,6 +96,15 @@ class LambdaRouter { this._wrap('GET', path, hdlr); } + /** + * Add handler for patch route + * @param {String} path + * @param {Function} hdlr - list of handlers to call in succession + */ + patch(path, ...hdlr) { + this._wrap('PATCH', path, hdlr); + } + /** * Add handler for post route. * @param {String} path