mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-24 04:51:51 +00:00
feat: handle error when the endpoint is not working
This commit is contained in:
@@ -8,7 +8,7 @@ export const getProvider = async () => {
|
||||
if (!key) return undefined;
|
||||
|
||||
try {
|
||||
const providers = await fetch(`${key}/api/providers`);
|
||||
const providers = await fetch(`${key}/api/proiders`);
|
||||
|
||||
const data = await providers.json();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user