guyklainer d4ed0f70ab Add support in Spotinst Function.
added 2 new templates - spotinst-nodejs, spotinst-python
2017-08-20 09:49:18 +03:00

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"}
}