Files
gateway/plugins/promptsecurity/shared.ts
T
2025-04-28 14:42:58 +03:00

11 lines
318 B
TypeScript

import { post } from '../utils';
export const promptSecurityProtectApi = async (credentials: any, data: any) => {
const headers = {
'APP-ID': credentials.apiKey,
'Content-Type': 'application/json',
};
const url = `https://${credentials.apiDomain}/api/protect`;
return post(url, data, { headers });
};