mirror of
https://github.com/Lissy93/web-check.git
synced 2025-08-09 13:04:52 +02:00
Update API endpoints to read URL params from either option
This commit is contained in:
@ -38,7 +38,7 @@ const isPgpSigned = (result) => {
|
||||
};
|
||||
|
||||
exports.handler = async (event, context) => {
|
||||
const urlParam = event.queryStringParameters.url;
|
||||
const urlParam = (event.queryStringParameters || event.query).url;
|
||||
if (!urlParam) {
|
||||
return {
|
||||
statusCode: 400,
|
||||
|
Reference in New Issue
Block a user