mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-18 01:51:50 +00:00
74f7a86c2b
Co-authored-by: Chandrapal Badshah <12944530+Chan9390@users.noreply.github.com>
15 lines
402 B
TypeScript
15 lines
402 B
TypeScript
export const getLighthouseComplianceFrameworks = async (
|
|
provider_type: string,
|
|
) => {
|
|
const url = new URL(
|
|
`https://hub.prowler.com/api/compliance?fields=id&provider=${provider_type}`,
|
|
);
|
|
const response = await fetch(url.toString(), {
|
|
method: "GET",
|
|
});
|
|
|
|
const data = await response.json();
|
|
const frameworks = data.map((item: { id: string }) => item.id);
|
|
return frameworks;
|
|
};
|