mirror of
https://codeberg.org/alicia/web-check.git
synced 2026-03-14 14:45:48 +01:00
Adds functionality for threats, malware, phishing, viruses
This commit is contained in:
parent
83c8d311b3
commit
759bb603df
4 changed files with 23 additions and 6 deletions
|
|
@ -52,6 +52,9 @@ const handler = async (url) => {
|
|||
const urlHaus = await getUrlHausResult(url);
|
||||
const phishTank = await getPhishTankResult(url);
|
||||
const cloudmersive = await getCloudmersiveResult(url);
|
||||
if (urlHaus.error && phishTank.error && cloudmersive.error) {
|
||||
throw new Error(`All requests failed - ${urlHaus.error} ${phishTank.error} ${cloudmersive.error}`);
|
||||
}
|
||||
return JSON.stringify({ urlHaus, phishTank, cloudmersive });
|
||||
} catch (error) {
|
||||
throw new Error(error.message);
|
||||
Loading…
Add table
Add a link
Reference in a new issue