mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-10 20:37:29 -08:00
6 lines
267 B
TypeScript
6 lines
267 B
TypeScript
|
import { IRestApiContext } from '@/Interface';
|
||
|
import { makeRestApiRequest } from './helpers';
|
||
|
|
||
|
export async function getNewWorkflow(context: IRestApiContext, name?: string) {
|
||
|
return await makeRestApiRequest(context, 'GET', `/workflows/new`, name ? { name } : {});
|
||
|
}
|