Removed secret data (secret has now been changed)
This commit is contained in:
parent
7809863117
commit
7e8330bfd2
@ -1,7 +1,5 @@
|
|||||||
const GEOLOCATION_API_KEY = '1489c8e06deb4693bf31733a18fe2351';
|
|
||||||
|
|
||||||
export async function getLocation(ip) {
|
export async function getLocation(ip) {
|
||||||
const geoApiUrl = `https://api.ipgeolocation.io/ipgeo?apiKey=${GEOLOCATION_API_KEY}&ip=${ip}`;
|
const geoApiUrl = `https://api.ipgeolocation.io/ipgeo?apiKey=${GEOLOCATION_AUTH}&ip=${ip}`;
|
||||||
|
|
||||||
const response = await fetch(geoApiUrl);
|
const response = await fetch(geoApiUrl);
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user