mirror of
https://github.com/Lissy93/web-check.git
synced 2025-08-09 05:04:31 +02:00
Update API endpoints to read URL params from either option
This commit is contained in:
@ -2,7 +2,7 @@ const traceroute = require('traceroute');
|
||||
const url = require('url');
|
||||
|
||||
exports.handler = async function(event, context) {
|
||||
const urlString = event.queryStringParameters.url;
|
||||
const urlString = (event.queryStringParameters || event.query).url;
|
||||
|
||||
try {
|
||||
if (!urlString) {
|
||||
|
Reference in New Issue
Block a user