Merge remote-tracking branch 'origin/https_fix' into dev

This commit is contained in:
Gabriel Almeida 2023-03-20 09:10:23 -03:00
commit b86972eab7
4 changed files with 16 additions and 4 deletions

View file

@ -4,10 +4,10 @@ import axios, { AxiosResponse } from "axios";
const backendUrl = window.sessionStorage.getItem('port') || "http://localhost:7860";
export async function getAll():Promise<AxiosResponse<APIObjectType>> {
return await axios.get(`${backendUrl}/all`);
return await axios.get(`/all`);
}
export async function sendAll(data:sendAllProps) {
console.log(data);
return await axios.post(`${backendUrl}/predict`, data);
return await axios.post(`/predict`, data);
}