Merge remote-tracking branch 'origin/https_fix' into dev
This commit is contained in:
commit
b86972eab7
4 changed files with 16 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue