Skip to content

Commit

Permalink
Updated GEO IP URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Ref-Bit authored Aug 18, 2022
1 parent 04e3c21 commit 7ae91c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -105,4 +105,4 @@ export const getAsmaa = async () => {
} catch (error) {
console.log(error)
}
}
}

0 comments on commit 7ae91c0

Please sign in to comment.