UNPKG

rsshub

Version:
28 lines (27 loc) 919 B
import { t as rofetch } from "./ofetch-W1aeTHCo.mjs"; import { t as parseDate } from "./parse-date-CjhZE69i.mjs"; //#region lib/routes/hypergryph/siren/news.ts const route = { path: "/siren/news", categories: ["game"], example: "/hypergryph/siren/news", radar: [{ source: ["monster-siren.hypergryph.com/info"] }], name: "塞壬唱片", maintainers: ["rikkablue"], handler, url: "monster-siren.hypergryph.com/info" }; async function handler() { return { title: "塞壬唱片新闻", link: "https://monster-siren.hypergryph.com/info/", description: "塞壬唱片新闻", item: (await rofetch("https://monster-siren.hypergryph.com/api/news", { headers: { Referer: "https://monster-siren.hypergryph.com/info" } })).data.list.map((item) => ({ title: item.title, pubDate: parseDate(item.date), link: `https://monster-siren.hypergryph.com/info/${item.cid}` })) }; } //#endregion export { route };