typo
This commit is contained in:
@@ -9,7 +9,7 @@ const path = config.REACT_APP_API_HOSTNAME || process.env.REACT_APP_API_HOSTNAME
|
||||
export const postApi = {
|
||||
async getPostsByCoords (lat, lon) {
|
||||
if (!keycloak.authenticated) return [];
|
||||
return (await axios.get(`${route}/posts/${lat}/${lon}`)).data;
|
||||
return (await axios.get(`${path}/posts/${lat}/${lon}`)).data;
|
||||
},
|
||||
async getPostByID (id) {
|
||||
if (!keycloak.authenticated) return [];
|
||||
|
||||
Reference in New Issue
Block a user