mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
* 👕 Move `consistent-type-imports` to top level * 👕 Apply lintfixes * 👕 Apply more lintfixes * 👕 More lintfixes * 👕 More lintfixes
10 lines
313 B
TypeScript
10 lines
313 B
TypeScript
import type { 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 });
|
|
}
|