Update API endpoints to read URL params from either option
This commit is contained in:
@@ -34,7 +34,7 @@ async function checkPort(port, domain) {
|
||||
}
|
||||
|
||||
exports.handler = async (event, context) => {
|
||||
const domain = event.queryStringParameters.url;
|
||||
const domain = (event.queryStringParameters || event.query).url;
|
||||
|
||||
if (!domain) {
|
||||
return errorResponse('Missing domain parameter.');
|
||||
|
||||
Reference in New Issue
Block a user