Skip to content

Commit

Permalink
Specifying the parameters of http method functions
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Oct 15, 2018
1 parent 16b8479 commit 7a2645d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Base.prototype.use = function () {
};

each(methods, i => {
Base.prototype[i.toLowerCase()] = function (...args) {
this.use(...args);
Base.prototype[i.toLowerCase()] = function (rpath, fn) {
this.use(rpath, fn, i);
};
});

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "woodland",
"version": "7.2.7",
"version": "7.2.8",
"description": "Lightweight HTTP/HTTP2 router with automatic `Allow` & `CORS` headers",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 7a2645d

Please sign in to comment.