diff --git a/langflow/frontend/src/controllers/NodesServices/index.ts b/langflow/frontend/src/controllers/NodesServices/index.ts new file mode 100644 index 000000000..214e41ee1 --- /dev/null +++ b/langflow/frontend/src/controllers/NodesServices/index.ts @@ -0,0 +1,11 @@ +import { APIObjectType, sendAllProps } from '../../types/api/index'; +import axios, { AxiosResponse } from "axios"; + +export async function getAll():Promise> { + return await axios.get("http://localhost:5003/"); +} + +export async function sendAll(data:sendAllProps) { + console.log(data); + return await axios.post("http://localhost:5003/predict", data); +}