Skip to content

Commit

Permalink
minor code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
jkyberneees committed May 19, 2019
1 parent eb59c96 commit eb58976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ module.exports = (options = {}) => {
// global middlewares holder
const middlewares = []
// routes registration shortcut factory
const addRoute = (method) => (path, ...args) => {
routeRegister(app, method, path, args)
const addRoute = (methods) => (path, ...args) => {
routeRegister(app, methods, path, args)

// supporting method chaining for routes registration
return app
Expand Down

0 comments on commit eb58976

Please sign in to comment.