UNPKG

rsshub

Version:
29 lines (28 loc) 750 B
import { t as rofetch } from "./ofetch-W1aeTHCo.mjs"; import { t as parseDate } from "./parse-date-CjhZE69i.mjs"; //#region lib/routes/chuhaibiji/index.ts const route = { path: "/", categories: ["other"], example: "/chuhaibiji", name: "资讯", maintainers: ["8430177"], handler }; async function handler() { const baseUrl = "https://www.chuhaibiji.com"; return { title: "出海笔记 ~ 资讯", link: baseUrl, description: "出海笔记 ~ 资讯", item: (await rofetch(`${baseUrl}/wp-json/wp/v2/posts`)).map((post) => ({ title: post.title.rendered, link: post.link, description: post.content.rendered, pubDate: parseDate(post.date_gmt), updated: parseDate(post.modified_gmt) })) }; } //#endregion export { route };