import{t as e}from"./got-BBDj7u1e.mjs";import{n as t,r as n,t as r}from"./const-C_XC83HP.mjs";const i={path:`/category/:category`,categories:[`picture`],example:`/4kup/category/coser`,parameters:{category:`Category`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1,nsfw:!0},radar:[{source:[`4kup.net/category/:category`],target:`/category/:category`}],name:`Category`,maintainers:[`AiraNadih`],handler:a,url:`4kup.net/`};async function a(i){let a=Number.parseInt(i.req.query(`limit`))||20,o=i.req.param(`category`),s=`${t}category/${o}/`,{data:[{id:c}]}=await e(`${t}wp-json/wp/v2/categories?slug=${o}`),{data:l}=await e(`${t}wp-json/wp/v2/posts?categories=${c}&per_page=${a}`);return{title:`${r} - Category: ${o}`,link:s,item:l.map(e=>n(e))}}export{i as route};