From 7ae91c045fd754449cc5cf3a9c8f9f5cb7f05991 Mon Sep 17 00:00:00 2001 From: Refaat Bitar Date: Thu, 18 Aug 2022 15:17:30 +0300 Subject: [PATCH] Updated GEO IP URL --- src/api/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index ee7b1c9..77cb815 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -6,7 +6,7 @@ const apiAyahURL = 'https://api.alquran.cloud/v1/' export const getCityCountry = async () => { try { - const { data } = await axios.get('https://freegeoip.app/json/') + const { data } = await axios.get(`http://api.ipstack.com/check?access_key=${process.env.REACT_APP_IP_ACCESS_KEY}`) if(data !== null || data.length !== 0){ return data @@ -105,4 +105,4 @@ export const getAsmaa = async () => { } catch (error) { console.log(error) } -} \ No newline at end of file +}