Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
ukayani authored Jul 10, 2020
2 parents bc1da4c + 26d0cfb commit 1ed2f33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function getHandlersFromArgs (args, start) {
return process(args, []);
}


const RESTIFY_METHODS = ['get', 'post', 'put', 'del', 'patch', 'head', 'opts', 'group'];

/**
Expand All @@ -43,7 +44,6 @@ function Router () {
if (method === 'group') {
return;
}

routes[method] = [];
});

Expand Down Expand Up @@ -129,6 +129,7 @@ RESTIFY_METHODS.forEach(function (method) {
}
};


});

/**
Expand Down

0 comments on commit 1ed2f33

Please sign in to comment.