borrar urls hardcodeadas

This commit is contained in:
Cat /dev/Nulo 2023-12-08 16:07:32 -03:00
parent 9800b16bbc
commit e0bb1b0ee6

View file

@ -48,8 +48,6 @@ async function loadGzippedJson(url: string): Promise<unknown> {
return json; return json;
} }
const endpoint = "http://localhost:8081";
export const gobData = `${endpoint}/datos.gob.ar_data.json`;
export async function fetchData(url: string) { export async function fetchData(url: string) {
const json = await loadGzippedJson(`${url}/data.json.gz`); const json = await loadGzippedJson(`${url}/data.json.gz`);
if (import.meta.env.DEV) console.debug(json); if (import.meta.env.DEV) console.debug(json);