Skip to content

Commit

Permalink
fix: Update Dataguidance News API Url (DIYgod#18352)
Browse files Browse the repository at this point in the history
* update dataguidance feed

* fix link

* update source url

* Update index.ts
  • Loading branch information
harveyqiu authored Feb 19, 2025
1 parent 8a0efc0 commit f97f8c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/routes/dataguidance/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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 () => {
Expand Down

0 comments on commit f97f8c3

Please sign in to comment.