From 71c9d1635b1bc560d73c883f7ab52d9cb58a5180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=20Jurmanovi=C4=87?= Date: Thu, 5 Oct 2023 19:05:33 +0200 Subject: [PATCH] use constant url --- src/common/getFirstHtml.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/getFirstHtml.ts b/src/common/getFirstHtml.ts index 764b150..fe01140 100644 --- a/src/common/getFirstHtml.ts +++ b/src/common/getFirstHtml.ts @@ -1,8 +1,9 @@ +import { config } from "@constants"; import axios from "axios"; import cheerio from "cheerio"; export async function getFirstHtml(): Promise { - const response = await axios.get("https://sib.net.hr/legica-dana"); + const response = await axios.get(config.LEGICA_URL); const html = response.data; const $ = cheerio.load(html); const { href } = $(".News-link.c-def")?.attr() || {};