rsshub
Version:
Make RSS Great Again!
40 lines (38 loc) • 1.06 kB
JavaScript
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 "./cache-Bo__VnGm.mjs";
import "./helpers-DxBp0Pty.mjs";
import "./got-KxxWdaxq.mjs";
import { t as utils_default } from "./utils-BLde1B-Q.mjs";
//#region lib/routes/ruancan/category.ts
const route = {
path: "/category/:category?",
categories: ["new-media"],
example: "/ruancan/category/news",
parameters: { category: "分类 id,可在对应分类页 URL 中找到,默认为业界" },
features: {
requireConfig: false,
requirePuppeteer: false,
antiCrawler: false,
supportBT: false,
supportPodcast: false,
supportScihub: false
},
radar: [{
source: ["ruancan.com/cat/:category", "ruancan.com/"],
target: "/category/:category"
}],
name: "分类",
maintainers: [],
handler,
url: "ruancan.com/"
};
async function handler(ctx) {
return await utils_default(ctx, `/cat/${ctx.req.param("category")}`);
}
//#endregion
export { route };