From 98b7703e95f31072ab2f19cf27e8eafa80ede916 Mon Sep 17 00:00:00 2001 From: pseudoyu Date: Wed, 9 Oct 2024 11:17:02 +0700 Subject: [PATCH] fix(route): use apnews api instead of official rss (down now) --- lib/routes/apnews/api.ts | 2 +- lib/routes/apnews/rss.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/apnews/api.ts b/lib/routes/apnews/api.ts index 28d7e0f4f01370..db520c2c5028cc 100644 --- a/lib/routes/apnews/api.ts +++ b/lib/routes/apnews/api.ts @@ -6,7 +6,7 @@ import { parseDate } from '@/utils/parse-date'; export const route: Route = { path: '/api/:tags?', - categories: ['traditional-media'], + categories: ['traditional-media', 'popular'], example: '/apnews/api/business', view: ViewType.Articles, parameters: { diff --git a/lib/routes/apnews/rss.ts b/lib/routes/apnews/rss.ts index a34dc17b0aeef6..8402bde6a31505 100644 --- a/lib/routes/apnews/rss.ts +++ b/lib/routes/apnews/rss.ts @@ -5,7 +5,7 @@ const HOME_PAGE = 'https://apnews.com'; export const route: Route = { path: '/rss/:category?', - categories: ['traditional-media', 'popular'], + categories: ['traditional-media'], example: '/apnews/rss/business', view: ViewType.Articles, parameters: {