Skip to content

Instantly share code, notes, and snippets.

@ThomasAribart
Last active May 10, 2020 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThomasAribart/00f5df0efaff0f93a30d5306f756c2ef to your computer and use it in GitHub Desktop.
Save ThomasAribart/00f5df0efaff0f93a30d5306f756c2ef to your computer and use it in GitHub Desktop.
import middy from '@middy/core';
// Business logic
const businessLogic = async (event) => {
...
return myResponse;
};
// Configuration
export const myHandler = middy(businessLogic).onError(handleError);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment