reversed longitude and latitude in api url
This commit is contained in:
@@ -7,7 +7,7 @@ const path = "https://api.jodel.anxietyprime.de";
|
|||||||
export const postApi = {
|
export const postApi = {
|
||||||
async getPostsByCoords (lon, lat) {
|
async getPostsByCoords (lon, lat) {
|
||||||
if (!keycloak.authenticated) return [];
|
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) {
|
async getPostByID (id) {
|
||||||
if (!keycloak.authenticated) return [];
|
if (!keycloak.authenticated) return [];
|
||||||
|
|||||||
Reference in New Issue
Block a user