Changed location of files to match pip install

This commit is contained in:
Lucas Oliveira 2023-03-02 10:10:42 -03:00
commit 813608a4c6

View 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);
}