elm-pages-v3-beta/examples/trails/functions/time.js

15 lines
327 B
JavaScript
Raw Normal View History

2022-05-18 02:07:07 +03:00
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,
};
};