We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: httpRouterHandler is not a function Getting TypeError error when using http-router in ES5 .js file.
To Reproduce
Here is the sample code
const httpRouterHandler = require('@middy/http-router'); const getHandler = middy().handler((event, context) => { console.log('call from route'); return { statusCode: 200, body: '{}' }; }); const routes = [ { method: 'GET', path: '/health', handler: getHandler } ]; exports.health = middy().handler(httpRouterHandler(routes));
Thrown error
Expected behaviour It should call given route instead of giving an error
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered:
Thanks for reporting, I've updated the dep and added in new tests. Seems to have resolved itself. See v4.2.8
Sorry, something went wrong.
No branches or pull requests
TypeError: httpRouterHandler is not a function
Getting TypeError error when using http-router in ES5 .js file.
To Reproduce
Here is the sample code
Thrown error
Expected behaviour
It should call given route instead of giving an error
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: