Update index.js
This commit is contained in:
parent
57791c89a3
commit
3312d48a38
6
index.js
6
index.js
|
|
@ -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 };
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user