import{t as e}from"./cache-DUthuMSu.mjs";import{n as t,t as n}from"./util-Bg7NtPrA.mjs";const r={path:`/top/:category?`,categories:[`reading`],example:`/56kog/top/weekvisit`,parameters:{category:`分类，见下表，默认为周点击榜`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},name:`榜单`,maintainers:[`nczitzk`],handler:i,description:`| [周点击榜](https://www.56kog.com/top/weekvisit.html) | [总收藏榜](https://www.56kog.com/top/goodnum.html) | [最新 入库](https://www.56kog.com/top/postdate.html) |
| ---------------------------------------------------- | -------------------------------------------------- | ---------------------------------------------------- |
| weekvisit                                            | goodnum                                            | postdate                                             |`};async function i(r){let{category:i=`weekvisit`}=r.req.param(),a=r.req.query(`limit`)?Number.parseInt(r.req.query(`limit`),10):30,o=new URL(`top/${i.split(/_/)[0]}_1.html`,t).href;return await n(a,o,e.tryGet)}export{r as route};