Changed location of files to match pip install
This commit is contained in:
parent
bc0cb9685c
commit
813608a4c6
1 changed files with 11 additions and 0 deletions
11
langflow/frontend/src/controllers/NodesServices/index.ts
Normal file
11
langflow/frontend/src/controllers/NodesServices/index.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { APIObjectType, sendAllProps } from '../../types/api/index';
|
||||
import axios, { AxiosResponse } from "axios";
|
||||
|
||||
export async function getAll():Promise<AxiosResponse<APIObjectType>> {
|
||||
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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue