Files
prowler/ui/actions/lighthouse/complianceframeworks.ts
Chandrapal Badshah 74f7a86c2b feat(lighthouse): Add chat interface (#7878)
Co-authored-by: Chandrapal Badshah <12944530+Chan9390@users.noreply.github.com>
2025-06-12 15:19:41 +02:00

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;
};