reversed longitude and latitude in api url

This commit is contained in:
2024-06-13 14:51:36 +02:00
parent 088252f5bc
commit 103e3bace3

View File

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