diff --git a/api/tech-stack.js b/api/tech-stack.js index 788a8f6..596ba52 100644 --- a/api/tech-stack.js +++ b/api/tech-stack.js @@ -26,7 +26,7 @@ const analyze = async (url) => { exports.handler = async (event, context, callback) => { // Validate URL parameter - if (!event.queryStringParameters || !event.queryStringParameters.url) { + if (!(event.queryStringParameters || event.query).url) { return { statusCode: 400, body: JSON.stringify({ error: 'Missing url parameter' }),