import request from 'utils/request';

const REQUEST_URL = `${process.env.RESOURCE_WATCH_API}/geostore/admin/`;

export const getGeostoreProvider = (country, region, subRegion) => {
  const url = `${REQUEST_URL}${country}${region ? `/${region}` : ''}${
    subRegion ? `/${subRegion}` : ''
  }`;
  return request.get(url);
};

export default {
  getGeostoreProvider
};

@@ -70,28 +70,20 @@
 env.
-RESOURCE_WATCH
+GFW
 _API%7D/
+v2/
 geos

update geostore version