mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
7 lines
298 B
TypeScript
7 lines
298 B
TypeScript
|
import {IRestApiContext} from "@/Interface";
|
||
|
import {makeRestApiRequest} from "@/api/helpers";
|
||
|
|
||
|
export function getCurlToJson(context: IRestApiContext, curlCommand: string): Promise<{ curlCommand: string | null }> {
|
||
|
return makeRestApiRequest(context, 'POST', '/curl-to-json', { curlCommand });
|
||
|
}
|