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'
|
const subject = event.queryStringParameters.name || 'World'
|
||||||
return {
|
return {
|
||||||
statusCode: 200,
|
statusCode: 200,
|
||||||
body: JSON.stringify({ message: `Hello ${subject}` }),
|
body: JSON.stringify({ message: `Hello ${subject}`, path: event.path }),
|
||||||
// // more keys you can return:
|
// // more keys you can return:
|
||||||
// headers: { "headerName": "headerValue", ... },
|
// headers: { "headerName": "headerValue", ... },
|
||||||
// isBase64Encoded: true,
|
// isBase64Encoded: true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue