mirror of
https://github.com/ourongxing/newsnow.git
synced 2025-01-19 11:19:14 +08:00
15 lines
504 B
TypeScript
15 lines
504 B
TypeScript
import type { NewsItem, SourceID } from "@shared/types"
|
|
import weibo from "./weibo"
|
|
import zaobao from "./zaobao"
|
|
|
|
export const sourcesFn = {
|
|
"peopledaily": defineRSSSource("https://feedx.net/rss/people.xml"),
|
|
weibo,
|
|
"douyin": defineFallbackSource("douyin"),
|
|
zaobao,
|
|
"toutiao": defineFallbackSource("toutiao"),
|
|
"wallstreetcn": defineRSSHubSource("/wallstreetcn/live"),
|
|
"36kr-quick": defineRSSHubSource("/36kr/newsflashes"),
|
|
// "36kr": kr,
|
|
} as Record<SourceID, () => Promise<NewsItem[]>>
|