mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 19:28:16 +00:00
19 lines
470 B
TypeScript
19 lines
470 B
TypeScript
import SecurityClient from '~/utilities/SecurityClient';
|
|
|
|
const getIntegrations = () => {
|
|
return SecurityClient.fetchCall('/api/v1/integration/integrations', {
|
|
method: 'GET',
|
|
headers: {
|
|
'Content-Type': 'application/json'
|
|
}
|
|
}).then(async (res) => {
|
|
if (res && res.status == 200) {
|
|
return (await res.json()).integrations;
|
|
} else {
|
|
console.log('Failed to get project integrations');
|
|
}
|
|
});
|
|
};
|
|
|
|
export default getIntegrations;
|