diff --git a/backend/ai/src/index.ts b/backend/ai/src/index.ts index 3d35eb7..fa5799c 100644 --- a/backend/ai/src/index.ts +++ b/backend/ai/src/index.ts @@ -8,9 +8,9 @@ export default { if (request.method !== 'GET') { return new Response('Method Not Allowed', { status: 405 }); } - // if (request.headers.get('Authorization') !== env.KEY) { - // return new Response('Unauthorized', { status: 401 }); - // } + if (request.headers.get('Authorization') !== env.KEY) { + return new Response('Unauthorized', { status: 401 }); + } const url = new URL(request.url); const fileName = url.searchParams.get('fileName');