changed api link

This commit is contained in:
anovazzi1 2023-03-05 14:45:33 -03:00
commit b5bba04c3c

View file

@ -4,7 +4,7 @@ import axios, { AxiosResponse } from "axios";
const backendUrl = process.env.BACKEND || "http://localhost:5003"; const backendUrl = process.env.BACKEND || "http://localhost:5003";
export async function getAll():Promise<AxiosResponse<APIObjectType>> { export async function getAll():Promise<AxiosResponse<APIObjectType>> {
return await axios.get(`${backendUrl}/`); return await axios.get(`${backendUrl}/all`);
} }
export async function sendAll(data:sendAllProps) { export async function sendAll(data:sendAllProps) {