test those netlify functions
This commit is contained in:
parent
bb8accf537
commit
cf8a9b0538
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue