UNPKG

rsshub

Version:
49 lines (47 loc) 1.25 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 "./render-BQo6B4tL.mjs"; import { t as got_default } from "./got-KxxWdaxq.mjs"; import { n as apiRootUrl, r as rootUrl, t as ProcessItems } from "./utils-Df2b8tML.mjs"; //#region lib/routes/hk01/hot.ts const route = { path: "/hot", categories: ["new-media"], example: "/hk01/hot", parameters: {}, features: { requireConfig: false, requirePuppeteer: false, antiCrawler: false, supportBT: false, supportPodcast: false, supportScihub: false }, radar: [{ source: ["hk01.com/hot", "hk01.com/"] }], name: "热门", maintainers: [ "hoilc", "Fatpandac", "nczitzk" ], handler, url: "hk01.com/hot" }; async function handler(ctx) { return { title: "熱門新聞、全城熱話及社會時事 | 香港01", link: `${rootUrl}/hot`, item: await ProcessItems((await got_default({ method: "get", url: `${apiRootUrl}/v2/feed/hot` })).data.items, ctx.req.query("limit"), cache_default.tryGet) }; } //#endregion export { route };