import{t as e}from"./parse-date-BdYTmLpo.mjs";import{t}from"./got-BBDj7u1e.mjs";const n={path:`/news`,categories:[`sport`],example:`/wfdf/news`,parameters:{},features:{requireConfig:!1,requirePuppeteer:!1,antiCrawler:!1,supportBT:!1,supportPodcast:!1,supportScihub:!1},radar:[{source:[`wfdf.sport/news/`,`wfdf.sport/`]}],name:`News`,maintainers:[`HankChow`],handler:r,url:`wfdf.sport/news/`};async function r(n){let r=`https://wfdf.sport`,{data:i}=await t(`${r}/wp-json/wp/v2/posts`,{searchParams:{per_page:n.req.query(`limit`)??100,_embed:1}}),a=i.map(t=>({title:t.title.rendered,link:t.link,guid:t.guid.rendered,description:t.content.rendered,pubDate:e(t.date_gmt),author:t._embedded.author[0].name}));return{title:`WFDF News`,link:`${r}/news/`,image:`${r}/favicon.ico`,description:`WFDF 新闻`,item:a}}export{n as route};