From 813608a4c6b845a597de5b800f1c778781f00880 Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Thu, 2 Mar 2023 10:10:42 -0300 Subject: [PATCH] Changed location of files to match pip install --- .../frontend/src/controllers/NodesServices/index.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 langflow/frontend/src/controllers/NodesServices/index.ts 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); +}