From f97f8c367c6de4e99e3ed978fd2bdfd7f651532b Mon Sep 17 00:00:00 2001 From: Harvey Qiu Date: Wed, 19 Feb 2025 10:33:35 +0800 Subject: [PATCH] fix: Update Dataguidance News API Url (#18352) * update dataguidance feed * fix link * update source url * Update index.ts --- lib/routes/dataguidance/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/dataguidance/index.ts b/lib/routes/dataguidance/index.ts index 74a40c31f5d1cd..d44b4b4c5bb61d 100644 --- a/lib/routes/dataguidance/index.ts +++ b/lib/routes/dataguidance/index.ts @@ -20,7 +20,7 @@ export const route: Route = { async function handler() { const rootUrl = 'https://www.dataguidance.com'; - const url = 'https://dgcb20-ca-northeurope-dglive.yellowground-c1f17366.northeurope.azurecontainerapps.io/api/v1/content/articles?order=DESC_publishedOn&limit=25&article_types=news_post'; + const url = 'https://www.dataguidance.com/api/v1/kb/content/articles?news_types=510&news_types=511&news_types=512&news_types=513&order=DESC_publishedOn&limit=25&article_types=news_post'; const response = await ofetch(url); @@ -32,7 +32,7 @@ async function handler() { url: item.url, pubDate: parseDate(item.publishedOn), })); - const baseUrl = 'https://dgcb20-ca-northeurope-dglive.yellowground-c1f17366.northeurope.azurecontainerapps.io/api/v1/content/articles/by_path?path='; + const baseUrl = 'https://www.dataguidance.com/api/v1/kb/content/articles/by_path?path='; items = await Promise.all( items.map((item) => cache.tryGet(item.link, async () => {