rsshub
Version:
Make RSS Great Again!
49 lines (47 loc) • 1.32 kB
JavaScript
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 "./cache-SV6W5EPy.mjs";
import "./helpers-Bo4JQYdN.mjs";
import "./got-CO-ndVl2.mjs";
import { t as utils_default } from "./utils-BxQVWAud.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 };