mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
14 lines
291 B
Ruby
14 lines
291 B
Ruby
|
|
# Implement your function here.
|
|
# The function will get the request as parameter.
|
|
# The function should return an Hash
|
|
|
|
def main(args)
|
|
queryparams = args["query"]
|
|
body = args["body"]
|
|
|
|
{
|
|
:statusCode => 200,
|
|
:body => '{"hello":"from Ruby2.4.1 function"}'
|
|
}
|
|
end |