Files
Automata/packages/editor-ui/src/api/curlHelper.ts
कारतोफ्फेलस्क्रिप्ट™ 1563bf571d refactor(core): Move curl endpoint to its own controller (no-changelog) (#9605)
2024-06-05 10:43:09 +02:00

10 lines
334 B
TypeScript

import type { CurlToJSONResponse, IRestApiContext } from '@/Interface';
import { makeRestApiRequest } from '@/utils/apiUtils';
export async function getCurlToJson(
context: IRestApiContext,
curlCommand: string,
): Promise<CurlToJSONResponse> {
return await makeRestApiRequest(context, 'POST', '/curl/to-json', { curlCommand });
}