Update index.js

This commit is contained in:
fc-bot 2024-04-26 07:18:36 +00:00
parent 57791c89a3
commit 3312d48a38

View File

@ -1,5 +1,5 @@
// Define the handler function // Define the handler function
export const handler = async (event, context) => { const handler = async (event, context) => {
try { try {
// Prepare the response JSON // Prepare the response JSON
const responseJson = { const responseJson = {
@ -17,4 +17,6 @@ export const handler = async (event, context) => {
context.setHeader("Content-Type", "text/plain"); context.setHeader("Content-Type", "text/plain");
context.end("Internal Server Error"); context.end("Internal Server Error");
} }
}; };
module.exports = { handler };