test those netlify functions

This commit is contained in:
koehr 2022-01-22 16:18:57 +01:00
parent bb8accf537
commit cf8a9b0538

View file

@ -4,7 +4,7 @@ const handler = async (event) => {
const subject = event.queryStringParameters.name || 'World'
return {
statusCode: 200,
body: JSON.stringify({ message: `Hello ${subject}` }),
body: JSON.stringify({ message: `Hello ${subject}`, path: event.path }),
// // more keys you can return:
// headers: { "headerName": "headerValue", ... },
// isBase64Encoded: true,