rsshub
Version:
Make RSS Great Again!
49 lines (47 loc) • 1.32 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-DV3jjdsG.mjs";
//#region lib/routes/sobooks/index.ts
const route = {
path: "/:category?",
categories: ["reading"],
example: "/sobooks",
parameters: { category: "分类, 见下表" },
features: {
requireConfig: false,
requirePuppeteer: false,
antiCrawler: false,
supportBT: false,
supportPodcast: false,
supportScihub: false
},
radar: [{
source: ["sobooks.net/:category"],
target: "/:category"
}],
name: "首页",
maintainers: ["nczitzk"],
handler,
description: `| 分类 | 分类名 |
| -------- | ---------------- |
| 小说文学 | xiaoshuowenxue |
| 历史传记 | lishizhuanji |
| 人文社科 | renwensheke |
| 励志成功 | lizhichenggong |
| 经济管理 | jingjiguanli |
| 学习教育 | xuexijiaoyu |
| 生活时尚 | shenghuoshishang |
| 英文原版 | yingwenyuanban |`
};
async function handler(ctx) {
return await utils_default(ctx, ctx.req.param("category") ?? "");
}
//#endregion
export { route };