Files
wehub-resource-sync 3cd11ababe
Check Markdown links / linkChecker (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:38:56 +08: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 });
};