import axios from 'axios';

const REQUEST_URL = `${process.env.GFW_API}/area`;

export const getAreasProvider = token =>
  axios.get(REQUEST_URL, {
    headers: { Authorization: 'Bearer '.concat(token) }
  });

export default {
  getAreasProvider
};

@@ -65,16 +65,19 @@
 FW_API%7D/
+v2/
 area%60;%0A%0A

update to new area endpoint v2