diff --git a/src/config/endpoints.js b/src/config/endpoints.js index 5dd1622f..544bbcff 100644 --- a/src/config/endpoints.js +++ b/src/config/endpoints.js @@ -1,6 +1,6 @@ -const { REACT_APP_GRAASP_HOST } = process.env; +const { REACT_APP_GRAASP_API_HOST, REACT_APP_GRAASP_HOST } = process.env; export const generateGetSpaceEndpoint = id => - `${REACT_APP_GRAASP_HOST}/spaces/${id}/download-offline`; + `${REACT_APP_GRAASP_API_HOST}/spaces/${id}/offline-structure`; export const GET_SPACES_NEARBY_ENDPOINT = `${REACT_APP_GRAASP_HOST}/spaces/nearby`;