code update recorded at: 27/04/26 09:10:51
This commit is contained in:
parent
ffe27ef247
commit
eca9c4e426
|
|
@ -1,14 +1,18 @@
|
|||
// Define the handler function
|
||||
export const handler = async (event, res) => {
|
||||
try {
|
||||
const a = 12;
|
||||
const b = 12;
|
||||
|
||||
// Prepare the response JSON
|
||||
const responseJson = {
|
||||
message: "Hello World"
|
||||
message: `Hello World ${a+b}`
|
||||
};
|
||||
|
||||
// Print the JSON response to stdout
|
||||
console.log(JSON.stringify(responseJson));
|
||||
|
||||
|
||||
|
||||
// Set the response headers
|
||||
res.setHeader('Content-Type', 'application/json');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user