mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
14 lines
371 B
Python
14 lines
371 B
Python
|
|
# Implement your function here.
|
|
# The function will get the request as parameter.
|
|
# The function should return an object
|
|
|
|
def main(args):
|
|
queryparams = args.get("query", {})
|
|
body = args.get("body", {})
|
|
|
|
return {
|
|
'statusCode': 200,
|
|
'body': '{"hello":"from Python2.7 function"}',
|
|
'headers': {"Content-Type": "application/json"}
|
|
} |