Skip to content

Commit

Permalink
Merge pull request #6478 from ktopolski/master
Browse files Browse the repository at this point in the history
Render event information in aws-ruby handler template
  • Loading branch information
pmuens committed Jul 31, 2019
2 parents a2e9a69 + 459d782 commit 4327725
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/plugins/create/templates/aws-ruby/handler.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
require 'json'

def hello(event:, context:)
{ statusCode: 200, body: JSON.generate('Go Serverless v1.0! Your function executed successfully!') }
{
statusCode: 200,
body: {
message: 'Go Serverless v1.0! Your function executed successfully!',
input: event
}.to_json
}
end

0 comments on commit 4327725

Please sign in to comment.