elm-pages-v3-beta/examples/trails/functions/time.js
2022-05-17 16:07:07 -07:00

15 lines
327 B
JavaScript

exports.handler =
/**
* @param {import('aws-lambda').APIGatewayProxyEvent} event
* @param {any} context
*/
async function (event, context) {
return {
body: JSON.stringify(new Date().toTimeString()),
headers: {
"Content-Type": "application/json",
},
statusCode: 200,
};
};