Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinoenning committed May 27, 2018
1 parent ba0adde commit 95e37bf
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ Npm `$ npm i aws-lambda-http-response --save`
// import
const AwsLambdaHttpResponse = require("aws-lambda-http-response");

module.exports.handler = (event, context, callback) => {
let res = new AwsLambdaHttpResponse({ callback });
res.success();
};
module.exports.handler = (event, context, callback) =>
new AwsLambdaHttpResponse({ callback }).success();

/*
callback(null, {
statusCode: 200
});
*/
```

### Funções de retorno
Expand Down

0 comments on commit 95e37bf

Please sign in to comment.