import request from 'utils/request';

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

export const getDatasetsProvider = () =>
  request.get(
    `${
      REQUEST_URL
    }/dataset?application=gfw&includes=metadata,vocabulary,layer&page[size]=9999&hash=${new Date()}`
  );

import request from 'utils/request';

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

export const getDatasetsProvider = () =>
  request.get(
    `${
      REQUEST_URL
    }/dataset?application=gfw&includes=metadata,vocabulary,layer&page[size]=9999&hash=${
      process.env.API_CACHE
    }`
  );

remove cache busting query from datasets