diff --git a/amplify/functions/api-function/handler.ts b/amplify/functions/api-function/handler.ts index 3101a7b..0316d60 100644 --- a/amplify/functions/api-function/handler.ts +++ b/amplify/functions/api-function/handler.ts @@ -1,9 +1,7 @@ import type { APIGatewayProxyHandler } from "aws-lambda"; -import { TwelveLabs } from "twelvelabs-js"; export const handler: APIGatewayProxyHandler = async (event) => { console.log("event", event); - const client = new TwelveLabs({ apiKey: "" }); return { statusCode: 200, // Modify the CORS settings below to match your specific requirements @@ -11,6 +9,6 @@ export const handler: APIGatewayProxyHandler = async (event) => { "Access-Control-Allow-Origin": "*", // Restrict this to domains you trust "Access-Control-Allow-Headers": "*", // Specify only the headers you need to allow }, - body: JSON.stringify(client), + body: JSON.stringify("Hello from myFunction!"), }; };