Button criar alerta

This commit is contained in:
Hugo Falcao
2022-06-20 19:45:31 -03:00
parent 94246cb8e3
commit fcdc3feb24
3 changed files with 67 additions and 17 deletions

View File

@@ -55,4 +55,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("http://localhost:3333/search/", { latitude_from, longitude_from, addres_to });
console.log(response)
setStore(response);
}