code update recorded at: 27/04/26 09:11:20
This commit is contained in:
parent
eca9c4e426
commit
4e163eeed5
|
|
@ -3,16 +3,16 @@ export const handler = async (event, res) => {
|
|||
try {
|
||||
const a = 12;
|
||||
const b = 12;
|
||||
|
||||
|
||||
// Prepare the response JSON
|
||||
const responseJson = {
|
||||
message: `Hello World ${a+b}`
|
||||
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