17 lines
398 B
TypeScript
17 lines
398 B
TypeScript
import { APIGatewayEvent, Context, APIGatewayProxyResult } from 'aws-lambda';
|
|
|
|
export async function handler(
|
|
event: APIGatewayEvent,
|
|
context: Context
|
|
): Promise<APIGatewayProxyResult> {
|
|
return {
|
|
statusCode: 200,
|
|
headers: {
|
|
'Content-type': 'application/json'
|
|
},
|
|
body: JSON.stringify({
|
|
message: 'Hello, World!'
|
|
})
|
|
};
|
|
}
|