Skip to content

Commit

Permalink
Updated GEO IP API with HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
Ref-Bit authored Aug 18, 2022
1 parent 7ae91c0 commit b8f03a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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(`http://api.ipstack.com/check?access_key=${process.env.REACT_APP_IP_ACCESS_KEY}`)
const { data } = await axios.get(`https://api.ipbase.com/v2/info?apikey=${process.env.REACT_APP_IP_ACCESS_KEY}`)

if(data !== null || data.length !== 0){
return data
Expand Down

0 comments on commit b8f03a0

Please sign in to comment.