reversed longitude and latitude in api url

This commit is contained in:
2024-06-13 14:47:24 +02:00
parent 9b8dc8cde7
commit 088252f5bc

View File

@@ -7,7 +7,7 @@ const path = "https://api.jodel.anxietyprime.de";
export const postApi = {
async getPostsByCoords (lon, lat) {
if (!keycloak.authenticated) return [];
return (await axios.get(`${path}/posts/${lon}/${lat}`)).data;
return (await axios.get(`${path}/posts/${lat}/${lon}`)).data;
},
async getPostByID (id) {
if (!keycloak.authenticated) return [];