UNPKG

rsshub

Version:
48 lines (46 loc) 1.22 kB
import "./dist-Bog6z_OM.mjs"; import "./config-MQ-7ebJ_.mjs"; import "./logger-C4avouvV.mjs"; import "./ofetch-DKl_Ma9g.mjs"; import "./parse-date-r5WDWHno.mjs"; import "./is-worker-DESPicPc.mjs"; import { t as cache_default } from "./cache-SV6W5EPy.mjs"; import "./helpers-Bo4JQYdN.mjs"; import { t as got_default } from "./got-CO-ndVl2.mjs"; import { n as apiRootUrl, r as rootUrl, t as ProcessItems } from "./utils-CA038DN6.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 };