import{t as e}from"./parse-date-BdYTmLpo.mjs";import{t}from"./got-BBDj7u1e.mjs";const n={path:`/feeds/:id`,categories:[`other`],example:`/usepanda/feeds/5718e53e7a84fb1901e059cc`,parameters:{id:`Feed ID`},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},name:`Feeds`,maintainers:[`lyrl`],handler:r,description:`| Channel | feedId                   |
| ------- | ------------------------ |
| Github  | 5718e53e7a84fb1901e059cc |`};async function r(n){let{data:r}=await t(`https://api-panda.com/v4/articles?feeds=${n.req.param(`id`)}&limit=${n.req.query(`limit`)??30}&page=1&sort=popular`);return{title:`Panda Feeds`,link:`https://usepanda.com/`,item:r.map(t=>({title:`${t.title} 🌟 ${t.source.likesCount}`,author:t.source.username,pubDate:e(t.source.createdAt),link:t.source.targetUrl,description:t.description}))}}export{n as route};