UNPKG

rsshub

Version:
37 lines (35 loc) 1.11 kB
import "./esm-shims-CzJ_djXG.mjs"; import "./config-C37vj7VH.mjs"; import "./types-D84BRIt4.mjs"; import "./dist-BInvbO1W.mjs"; import "./logger-Czu8UMNd.mjs"; import "./ofetch-BIyrKU3Y.mjs"; import "./parse-date-BrP7mxXf.mjs"; import { n as CommonDataProperties, r as CommonRouteProperties, s as getPostItems, t as CategoryParam } from "./common-Bz4cAewj.mjs"; //#region lib/routes/voronoiapp/editors-pick.ts const route = { ...CommonRouteProperties, name: "Editor's Pick Posts", path: "/editors-pick/:category?", radar: [{ source: ["www.voronoiapp.com/posts/editors-pick"], target: "/editors-pick" }], example: "/voronoiapp/editors-pick", parameters: { category: CategoryParam }, handler: async (ctx) => { const { category = "" } = ctx.req.param(); const items = await getPostItems({ swimlane: "CURATED", category: category === "" ? void 0 : category }); return { ...CommonDataProperties, title: `Voronoi Editor's Pick Posts${category ? ` - ${category}` : ""}`, link: "https://www.voronoiapp.com/editors-pick", item: items }; } }; //#endregion export { route };