reversed longitude and latitude in api url
This commit is contained in:
@@ -5,7 +5,7 @@ import keycloak from "../Authentification/Keycloak";
|
|||||||
const path = "https://api.jodel.anxietyprime.de";
|
const path = "https://api.jodel.anxietyprime.de";
|
||||||
|
|
||||||
export const postApi = {
|
export const postApi = {
|
||||||
async getPostsByCoords (lon, lat) {
|
async getPostsByCoords (lat, lon) {
|
||||||
if (!keycloak.authenticated) return [];
|
if (!keycloak.authenticated) return [];
|
||||||
return (await axios.get(`${path}/posts/${lat}/${lon}`)).data;
|
return (await axios.get(`${path}/posts/${lat}/${lon}`)).data;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user