UNPKG

rsshub

Version:
33 lines (31 loc) 1.06 kB
import "./esm-shims-CzJ_djXG.mjs"; import "./config-C37vj7VH.mjs"; import "./dist-BInvbO1W.mjs"; import "./logger-Czu8UMNd.mjs"; import "./ofetch-BIyrKU3Y.mjs"; import "./parse-date-BrP7mxXf.mjs"; import { t as cache_default } from "./cache-Bo__VnGm.mjs"; import "./helpers-DxBp0Pty.mjs"; import "./got-KxxWdaxq.mjs"; import { n as getArticle, r as getSingleRecord, t as baseUrl } from "./common-Rx7fbrW4.mjs"; //#region lib/routes/pku/ss/notice.ts const host = `${baseUrl}/newscenter/notice/`; const route = { path: "/ss/notice", radar: [{ source: ["ss.pku.edu.cn/index.php/newscenter/notice", "ss.pku.edu.cn/"] }], name: "Unknown", maintainers: ["legr4ndk"], handler, url: "ss.pku.edu.cn/index.php/newscenter/notice" }; async function handler() { const items = await getSingleRecord(host); return { title: "北大软微-通知公告", description: "北京大学软件与微电子学院 - 通知公告", link: host, item: await Promise.all(items.map((item) => getArticle(item, cache_default.tryGet))) }; } //#endregion export { route };