mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
15 lines
414 B
JavaScript
15 lines
414 B
JavaScript
'use strict';
|
|
|
|
module.exports.hello = async (event, context) => {
|
|
return {
|
|
statusCode: 200,
|
|
body: JSON.stringify({
|
|
message: 'Go Serverless v1.0! Your function executed successfully!',
|
|
input: event,
|
|
}),
|
|
};
|
|
|
|
// Use this code if you don't use the http event with the LAMBDA-PROXY integration
|
|
// return { message: 'Go Serverless v1.0! Your function executed successfully!', event };
|
|
};
|