mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-09-24 11:00:43 +02:00
* ⚡ Adjust `format` script * 🔥 Remove exemption for `editor-ui` * 🎨 Prettify * 👕 Fix lint
10 lines
308 B
TypeScript
10 lines
308 B
TypeScript
import { CurlToJSONResponse, IRestApiContext } from '@/Interface';
|
|
import { makeRestApiRequest } from '@/utils';
|
|
|
|
export function getCurlToJson(
|
|
context: IRestApiContext,
|
|
curlCommand: string,
|
|
): Promise<CurlToJSONResponse> {
|
|
return makeRestApiRequest(context, 'POST', '/curl-to-json', { curlCommand });
|
|
}
|