Skip to content

Commit

Permalink
Default to empty methods config
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed May 19, 2018
1 parent f89e4a0 commit 0e0546c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const getHeaders = async (handlers, customHeaders = [], {relative, absolute}) =>
return Object.assign(defaultHeaders, related);
};

module.exports = async (request, response, config = {}, methods) => {
module.exports = async (request, response, config = {}, methods = {}) => {
const cwd = process.cwd();
const current = config.path ? path.join(cwd, config.path) : cwd;
const handlers = getHandlers(methods);
Expand Down

0 comments on commit 0e0546c

Please sign in to comment.