Últimas correções

This commit is contained in:
Matheus Albino Brunhara
2022-06-20 18:38:57 -05:00
parent 504b52b980
commit b254c80093
6 changed files with 19 additions and 189 deletions

View File

@@ -99,4 +99,11 @@ export async function getUsersSearching(currentPoint: any) {
// const data = await response.json();
console.log(response.data)
setStore(response.data);
}
export async function createUserSearch(latitude_from: any, longitude_from: any, addres_to: any) {
const response = await instance.post(`${userRoutes.createUserSearch.url}`, { latitude_from, longitude_from, addres_to });
console.log(response)
setStore(response);
}