Removed secret data (secret has now been changed)

This commit is contained in:
Tom Butcher 2025-03-27 22:27:58 +00:00
parent 7809863117
commit 7e8330bfd2

View File

@ -1,7 +1,5 @@
const GEOLOCATION_API_KEY = '1489c8e06deb4693bf31733a18fe2351';
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 data = await response.json();